ResourcePropertySource 读取properties文件中文乱码
在用ResourcePropertySource读取含有中文字符的properties文件的时候,发现读取的中文是乱码,可以通过如下代码来解决:tesla.properties: tesla.name=特斯拉ResourcePropertySource 读取tesla.properties文件: InputStream inputStream = this.getClas
原创
2018-01-18 18:17:37 ·
4400 阅读 ·
2 评论