Posts tagged spring

Why interface

“the key benefit of DI is loose coupling. If an object only knows about its dependencies by their interface then the dependency can be swapped out with a different implementation without the depending object knowing the difference” Spring in action

spring + tomcat

log4j: 把 log4j.properties 到 WEB-INF/classes. 放到lib里是没有用处的, tomcat只加载lib中的jar spring mvc 中一个simple form controller的配置