注解获取配置文件中文乱码问题解决
注解获取配置文件的值是中文,需要在service-context.xml中自动引入属性文件添加支持编码UTF-8格式,如下所示:
<!-- 自动引入属性文件 -->
<context:property-placeholder location="/conf/*.properties" file-encoding="UTF-8"/>
注解获取配置文件的值是中文,需要在service-context.xml中自动引入属性文件添加支持编码UTF-8格式,如下所示:
<!-- 自动引入属性文件 -->
<context:property-placeholder location="/conf/*.properties" file-encoding="UTF-8"/>