spring.profiles.active=@profiles.active@的含义
spring.profiles.active=@profiles.active@的含义spring.profiles.active=@profiles.active@ ,其实是配合maven profile进行选择不同配置文件进行启动。当执行mvn clean package -P test 命令时, @profiles.active@ 会替换成 test打开 jar包,即可看到:实战1.构建一个springboot 项目这里使用idea进行构建的,这个过程省略..
转载
2022-01-18 17:00:26 ·
639 阅读 ·
1 评论