Package org.aoju.bus.spring
Class Configurable
java.lang.Object
org.aoju.bus.spring.Configurable
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
@Order(2147483547)
public class Configurable
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor
用于配置一些特殊的关键属性,比如bus-boot.version等,
将作为一个名为PropertiesPropertySource的属性源添加
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Properties获取版本信息voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
Configurable
public Configurable()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
getProperties
获取版本信息- Returns:
- properties
-