问题
I am using play 1.2.3, in the application.conf, it has the following settings. What does each setting mean? It seems both are turned on, which one will take the priority? And also, if I remove the first setting (DEV mode), I don't get the PROD mode when run the app, am I missing anything?
# Application mode
# ~~~~~
# Set to dev to enable instant reloading and other development help.
# Otherwise set to prod.
application.mode=dev
%prod.application.mode=prod
回答1:
application.mode
is run by default.
the other one runs when you are running with a prod mode switch. For example, if you start your application like the following
play run myapp --%prod
it will use the prod.application.mode
config.
This means that you can define many different configurations for certain environments. For more information, check out this information on the Play documentation.
来源:https://stackoverflow.com/questions/8248456/play-application-conf-content-thats-bit-of-confusing