常看到程序中数据配置文件(jdbc.properties或datasource.properties等)中配了一个密文密码
整个解析过程是这样的:
》项目启动的时候,解析配置文件(借用了spring):
<!-- 读取环境变量的东西-->
<bean id="propertyConfigurer" class="com.tools.PropertyPlaceSpecialConfigurer">
<property name="locations">
<list>
<value>file:${HLJJAVAENV}/hljinstservice/jdbc.properties</value>
<value>file:${HLJJAVAENV}/hljinstservice/conf.properties</value>
<