Project Resource file configuration, project resource file
Project Resource file configuration to learn how to use resource file configuration.
This Guide describes how to use the Jetty container for web testing during local development.
How to complete this guide
You can start from scratch and complete each step, or you can bypass the basic setup steps you are already familiar. Either way, you can finally get the code that can work.
Single Environment
Configuration file storage directorySrc/main/resources/app. propertiesThis resource accessory is used in both the test and production environments.
Multi-Environment
Configuration file storage directorySrc/main/resources/app. propertiesProduction Environment
Configuration file storage directorySrc/main/resources/dev/app. propertiesTest Environment
Leopard placeholder
Leopard. performanceMethod time consumption monitoring (effective in the web Environment). If it is set to false, it is disabled. If it is set to true, it is enabled. The default value is false.
Leopard. sessionExpirySession expiration time, in seconds. The default value is 86400 seconds (24 hours ).
Summary
Congratulations! You have learned how to configure resource files. Good luck.