Recent Posts

Locate Bugs by Replaying

less than 1 minute read

线上机的 exception log 可能被吞(日志量很大的时候,exception log 根本就打不出来),此时可以用测试机 debug。如果测试机没问题,说明是线上环境问题(网络不好、依赖的外部接口挂了之类的)。如果测试机一样挂,那么直接在测试机上找问题就好了

JSON conversion

less than 1 minute read

1. Java Object <-> JSONObject

a weird problem caused by encoding

less than 1 minute read

copy 一段代码到 jsp,tomcat 的 catalina.err 总说:org.apache.jasper.JasperException: /WEB-INF/jsp/admin/lottery/add.jsp(425,32) equal symbol expected。

@Autowired not working 的问题

less than 1 minute read

Looks like the UserService class is missing a ‘stereotype’ annotation like @Component or @Service. You also have to configure the Spring classpath scanning u...

ibatis 小问题集合

1 minute read

Error setting a property: IllegalArgumentException 的一种可能的原因