Eclipse 中的默认编码格式为 ISO-8895-1,在此编码下中文的会显示如下的效果 解决方法 Windows --> Preference --> General Types --> Text --> *.properties --> UTF-8 --> Apply and Close 效果如下
public class PropertiesFactoryBeanextends PropertiesLoaderSupportimplements FactoryBean, InitializingBean Allows for making a properties file from a classpath location available as Properties instance in a bean factory. Can be used to populate any be
Windows版MySQL设置字符集全部为utf8的方式 MySQL安装目录下的my.ini文件 [client]节点 default-character-set=utf8 (增加) [mysql]节点 default-character-set=utf8 (修改) [mysqld]节点 default-character-set=utf8 (修改) character_set_server=utf8 (增加) 修改完毕后使用 net stop mysql net sta