
spring
zhuwei_clark
还行吧
展开
-
Spring用代码来读取properties文件
我们都知道,Spring可以@Value的方式读取properties中的值,只需要在配置文件中配置org.springframework.beans.factory.config.PropertyPlaceholderConfigurer<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pro转载 2017-06-20 15:58:20 · 366 阅读 · 0 评论 -
Spring MVC整合beetl之后添加国际化
实现beetl的function,然后使用spring配置注入该bean即可public class I18nUtil implements Function{ @Override public Object call(Object[] obj, Context context) { if(obj.length < 1) { try {原创 2017-06-20 13:03:27 · 2536 阅读 · 0 评论