Configuration system overview
The configuration system module achieves unified management of various file resources such as configuration during project development and maintenance through a simple directory structure, providing flexible and simple modular development and deployment. Valid solution;
Maven package dependency
<dependency> <groupId>net.ymate.platform</groupId> <artifactId>ymate-platform-configuration</artifactId> <version>2.0-SNAPSHOT</version> </dependency>
Note: Add the above configuration in the project's pom.xml. This module has introduced core package dependencies by default, so there is no need to repeat the configuration.
Features
- Standardizes the modular development process and unified life cycle management of resource files from a development perspective;
- From From a maintainability perspective, all resources are integrated into the entire system, with the advantages of effective resource reuse and flexible system integration construction, deployment, data backup and migration;
- Simple configuration file retrieval, loading and management mode;
- Resource sharing between modules, modules can share the configuration, classes, jar packages and other resource files of their projects;
- supports XML and Properties configuration file parsing by default, which can be passed The IConfigurationProvider interface customizes the file format and supports caching to avoid repeated loading;
- Configuration objects support
@Configuration
annotation declaration, which can automatically load and fill configuration content into class objects without coding; - The construction (compilation) and distribution of integrated modules, the starting and stopping of services, and the clear resource file classification structure can be quickly located;