JHipster 可执行文件 WAR 使用 dev 配置文件而不是 prod
JHipster executable WAR using dev profile instead of prod
我用mvnw -Pprod package
打包了一个WAR。根据 JHipster 网站:
Please note that this WAR file uses the profile we selected when building it. As it was built using the prod file in the previous section, it will therefore run with the prod profile.
还有:
When you run your production application from a WAR file, the default is to use the same profile(s) as used during packaging. If you want to override this, you can explicitly provide an alternative in VM argument
但是,当我 运行 我的 WAR 没有 --spring.profiles.active=prod
时,它 运行 在 dev
配置文件下。
给出了什么?
JHipster web site documents the most recent version. In your case, your version is well behind latest so it does not longer match but you can find the archived documentation for your exact version at https://jhipster.github.io/documentation-archive/
我用mvnw -Pprod package
打包了一个WAR。根据 JHipster 网站:
Please note that this WAR file uses the profile we selected when building it. As it was built using the prod file in the previous section, it will therefore run with the prod profile.
还有:
When you run your production application from a WAR file, the default is to use the same profile(s) as used during packaging. If you want to override this, you can explicitly provide an alternative in VM argument
但是,当我 运行 我的 WAR 没有 --spring.profiles.active=prod
时,它 运行 在 dev
配置文件下。
给出了什么?
JHipster web site documents the most recent version. In your case, your version is well behind latest so it does not longer match but you can find the archived documentation for your exact version at https://jhipster.github.io/documentation-archive/