目前我们正在努力--spring.profiles.active=dev
并且应用程序采用此文件夹"src/main/webapp"
当我在"src/main/webapp/dist"
--spring.profiles.active=stage
投放应用程序
“dist”文件夹由grunt生成,所有.js和.css缩小文件也与index.html文件一起生成。
答案 0 :(得分:1)
创建2个属性文件:
application-dev.properties
和
application-stage.properties
使用spring.view.prefix
属性为视图设置前缀(spring.mvc.view.prefix
从Spring Boot 1.3版开始。)