摘要:
直接上代码,看注释。 创建实体类: package com.spring.classs;public class Test { private String name; private String age; public Test(String name, String age) { this.n 阅读全文
摘要:
1.Spring提供了一个PropertyPlaceholderConfigurer的BeanFactory后置处理器,这个处理器允许用户将Bean的配置的部分内容 移到属性文件中。可以在Bean配置文件使用${var}的变量,PropertyPlaceholderConfigurer从属性文件中加 阅读全文