一、再application.properties中添加

 

二、

@Value("${field}")
在字段上面加个注解

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2022-02-08
  • 2021-07-27
  • 2021-09-02
  • 2021-09-13
  • 2022-01-07
  • 2021-05-17
猜你喜欢
  • 2021-10-29
  • 2021-10-30
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案