application.properties在Spring Boot项目中的位置

application.properties可以放在如下位置:

  1. 当前目录的 “/config”的子目录下
  2. 当前目录下
  3. classpath根目录的“/config”包下
  4. classpath的根目录下

官方application.properties的一些配置参数:https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-external-config
参考链接:https://blog.csdn.net/yingxiake/article/details/51260302

猜你喜欢

转载自www.cnblogs.com/zifeiy/p/9033020.html
今日推荐