application-dev.yml
server: port: 8080 girl: name: luna age: 21 hobby: reading
application-pro.yml
server: port: 8081 girl: name: luna age: 21 hobby: shopping
application.yml
spring: profiles: active: dev
运行后,浏览器没有任何输出,这是为什么呢?
通过命令行的方式有作用,java -jar target/girl-0.0.1SANPSHOT --spring.profiles.active=dev