idea首先打开setting

spring读取配置文件中文乱码问题

这几个地方设置之后如果还是没有反应,还需要设置

 

@PropertySource(value = "classpath:test.properties",encoding = "UTF-8")

在此注解上添加编码解决问题。

相关文章:

  • 2021-05-10
  • 2021-05-04
  • 2021-06-18
  • 2022-01-07
  • 2021-08-13
  • 2021-12-12
  • 2021-08-13
  • 2021-11-19
猜你喜欢
  • 2021-11-04
  • 2021-08-25
  • 2021-12-31
  • 2021-11-06
  • 2021-11-14
  • 2022-01-21
  • 2021-07-05
  • 2021-08-13
相关资源
相似解决方案