Project Resource file configuration, project resource file

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.