spring
风再起时_2014
走在架构师的路上。。。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring 利用PropertyPlaceholderConfigurer占位符
1.Spring的框架中,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer类可以将.properties(key/value形式)文件中一些动态设定的值(value),在XML中替换为占位该键($key$)的值,.properties文件可以根据客户需求,自定义一些相关的参数,这样的设计可提供程序的灵活性。2.在Spring中,使用PropertyPlaceholderConfigurer可以在XML配置文件中加入外转载 2011-01-27 11:02:00 · 639 阅读 · 0 评论 -
获取spring配置文件中的bean
<br />WebApplicationContextUtils<br /> .getWebApplicationContext(request.getSession()<br /> .getServletContext()).getBean("beanName");原创 2011-06-02 10:53:00 · 294 阅读 · 0 评论
分享