目录
引用其他的yml文件
spring:
profiles:
include: parameter
多环境-application.yml
spring:
profiles:
active: test
#dev 开发环境
---
spring:
profiles: dev
#test 测试环境
---
spring:
profiles: test
设置debug=true
在控制台查看springboot自动配置的服务
参考:https://blog.csdn.net/weixin_39810017/article/details/87346334
server.ssl.key-store
配置路径的问题:
在yml中配置路径为:
key-store: classpath:xtszhcj.jks
启动服务报错:
获取的路径前有tomcat.basedir路径file:的字样+classpath(正确路径),导致取不到对应路径文件报错。
参考:https://blog.csdn.net/cl_fjx_cs/article/details/102463669