注解配置在XML配置之前执行,所以后者会覆盖前者。 -----Spring Docs4.9.1@Required@Required应用于setter方法,例如: 1 public class SimpleMovieLister { 2 3 private MovieFinder movieFinder; 4 5 @Required 6 public void setMovieFinder(MovieFinder movieFinder) { 7 this.movieFinder = movieFinder; 8 } 9 ... Read More
posted @ 2012-11-09 17:19 siyed Views(271) Comments(0) Diggs(0) Edit
3.The IoC container(2) Read More
posted @ 2012-11-09 15:01 siyed Views(207) Comments(0) Diggs(0) Edit
CentOS 6.2安装配置LAMP服务器(Apache+PHP5+MySQL) Read More
posted @ 2012-11-09 11:24 siyed Views(117) Comments(0) Diggs(0) Edit
Bean scopesScopeDescriptionsingleton(Default默认) Scopes a single bean definition to a single object instance per Spring IoC container.prototypeScopes a single bean definition to any number of object instances.requestScopes a single bean definition to the lifecycle of a single HTTP request; that is, e Read More
posted @ 2012-11-09 11:20 siyed Views(123) Comments(0) Diggs(0) Edit