Spring Xml configuration constants

In spring architecture projects, configuration constants are often encountered, and there are two ways:

1. Configure in xml;
2. Configure in properties;

depending on the context.

As configured in xml:

<!-- thread pool configuration-->
<bean id="threadPoolConfig" class="java.util.HashMap" >
<constructor-arg>
<map>
<entry key="financeJobPoolSize">
< value>${financeJob.pool.size}</value>
</entry>
<entry key="jAccountAllJobPoolSize">
<value>${jAccountAllJob.pool.size}</value>
</entry>
</map>
< /constructor-arg>
</bean>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326995603&siteId=291194637