forked from rzdata/demo-empty
全局应用配置
This commit is contained in:
parent
95ca20b2a0
commit
657b581f8d
18
common/src/main/java/net/rzdata/demo/config/DemoConfig.java
Normal file
18
common/src/main/java/net/rzdata/demo/config/DemoConfig.java
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package net.rzdata.demo.config;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 全局配置
|
||||||
|
*/
|
||||||
|
@Configuration
|
||||||
|
@ConfigurationProperties(prefix = "demo")
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@ToString
|
||||||
|
public class DemoConfig {
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
net.rzdata.demo.exception.GlobalExceptionHandler
|
net.rzdata.demo.exception.GlobalExceptionHandler
|
||||||
|
net.rzdata.demo.config.DemoConfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user