profile 对配置环境的操作

作用:用于切换不同的环境多profile文件方式(即:创建多个profile文件,留一个作为启动用外,其他的profile文件...
spring boot 2021-11-17 浏览(2820)
读取springboot的配置类容

读取有三种方式案例@Value案例 Environment案例@ConfigurationPropertiesa:b:默认对象时(容易提取错误信息,...
spring boot 2021-11-17 浏览(1665)