@Configuration @EnableConfigurationProperties(value=WebExceptionProperties.class) public class CommonAutoConfiguration extends Object
Constructor and Description |
---|
CommonAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
checkConfig()
配置检查
|
ErrorUtil |
errorUtil(WebExceptionProperties exceptionProperties)
异常信息提取工具
|
SpringContext |
springContext(org.springframework.context.ApplicationContext applicationContext)
注入一个spring 上下文工具类
|
@Bean public SpringContext springContext(org.springframework.context.ApplicationContext applicationContext)
applicationContext
- spring上下文@Bean public ErrorUtil errorUtil(WebExceptionProperties exceptionProperties)
exceptionProperties
- 异常信息配置规则@PostConstruct public void checkConfig()
Copyright © 2021. All rights reserved.