Package org.springframework.boot.context
Class ConfigurationWarningsApplicationContextInitializer
java.lang.Object
org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer
- All Implemented Interfaces:
ApplicationContextInitializer<ConfigurableApplicationContext>
public class ConfigurationWarningsApplicationContextInitializer
extends Object
implements ApplicationContextInitializer<ConfigurableApplicationContext>
ApplicationContextInitializer
to report warnings for common misconfiguration
mistakes.- Since:
- 1.2.0
- Author:
- Phillip Webb
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
A single check that can be applied.protected static class
ConfigurationWarningsApplicationContextInitializer.Check
for@ComponentScan
on problematic package.protected static final class
BeanDefinitionRegistryPostProcessor
to report warnings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the checks that should be applied.void
initialize
(ConfigurableApplicationContext context)
-
Constructor Details
-
ConfigurationWarningsApplicationContextInitializer
public ConfigurationWarningsApplicationContextInitializer()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceApplicationContextInitializer<ConfigurableApplicationContext>
-
getChecks
Returns the checks that should be applied.- Returns:
- the checks to apply
-