1.springboot多环境可以由spring.profiles.active来控制测试、生产等环境
2.通过pom.xml中的maven配置来控制springboot的多环境
3.如果报下面异常,需要在idea的maven窗口reload
org.yaml.snakeyaml.scanner.ScannerException:while scanning for the next token found character '@' that cannot start any token.(Do not use @ for indentation)4.如果idea启动没有见到控制台环境变化,需要在maven窗口中点击compile重试,是idea的bug,高版本idea在maven窗口中会有Profiles选项框,无此情况,