最新文章

Spring 小技巧

1 分钟阅读

SpringMVC Controller 如何返回 404?

Service Locator Pattern

少于 1 分钟阅读

Martin Fowler 的 Inversion of Control Containers and the Dependency Injection pattern 中提到的。

Locate Bugs by Replaying

少于 1 分钟阅读

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

JSON conversion

少于 1 分钟阅读

1. Java Object <-> JSONObject

a weird problem caused by encoding

少于 1 分钟阅读

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