![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 589 阅读 · 0 评论 -
获取spring配置文件中的bean
<br />WebApplicationContextUtils<br /> .getWebApplicationContext(request.getSession()<br /> .getServletContext()).getBean("beanName");原创 2011-06-02 10:53:00 · 252 阅读 · 0 评论