idea中springBoot在使用properties文件进行自动注入时乱码的问题
在使用properties文件进行属性注入时,为属性赋值中文时输出为乱码,是因为idea默认为utf-8编码,而properties文件为ascii编码。
在setting中设置file encoding为properties文件utf-8编码自动转为ascii编码
在使用properties文件进行属性注入时,为属性赋值中文时输出为乱码,是因为idea默认为utf-8编码,而properties文件为ascii编码。
在setting中设置file encoding为properties文件utf-8编码自动转为ascii编码