java获取spring bean里面的properties文件属性
1.spring 配置文件添加一个 bean:
<bean id="threadPropertyConfigurer"
class="com.sanmina.mes.dashboard.server.util.ThreadPropertyConfigurer">
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="ignoreResourceNotFound" value="true"/>
<property name="locations">
<list>
<value>WEB-INF/thread.properties</value>
</list>
</property>
</bean>
上传war包到服务器
1>ssh root@172.26.100.160
2>password xxx
6>cd /usr/local/tomcat/webapps
7> rm -rf dashboard-serve*
7> mv /root/dashboard-server.war ./