自定义参数

配置文件值

name=itmayiedu.com

代码:

      @Value("${name}")

      private String name;

@ResponseBody

      @RequestMapping("/getValue")

      public String getValue() {

            returnname;

      }

参考https://www.cnblogs.com/duanxz/p/4520627.html

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2021-06-07
  • 2021-11-23
  • 2022-12-23
  • 2021-09-09
  • 2021-06-20
  • 2021-12-28
猜你喜欢
  • 2021-11-06
  • 2021-07-02
  • 2021-05-29
  • 2021-12-11
  • 2021-06-09
  • 2022-12-23
  • 2021-07-23
相关资源
相似解决方案