2017年12月15日

Spring和Spring MVC包扫描

摘要: 在Spring整体框架的核心概念中,容器是核心思想,就是用来管理Bean的整个生命周期的,而在一个项目中,容器不一定只有一个,Spring中可以包括多个容器,而且容器有上下层关系,目前最常见的一种场景就是在一个项目中引入Spring和SpringMVC这两个框架,那么它其实就是两个容器,Spring 阅读全文

posted @ 2017-12-15 12:42 Louis军 阅读(10749) 评论(0) 推荐(1) 编辑

PropertyPlaceholderConfigurer使用及@Value使用注意事项

摘要: 思考 关于PropertyPlaceholderConfigurer 1. PropertyPlaceholderConfigurer是个bean工厂后置处理器的实现,也就是 BeanFactoryPostProcessor接口的一个实现。PropertyPlaceholderConfigurer可 阅读全文

posted @ 2017-12-15 11:52 Louis军 阅读(2600) 评论(0) 推荐(0) 编辑

导航