getWarning() — spring-boot Function Reference
Architecture documentation for the getWarning() function in ConfigurationWarningsApplicationContextInitializer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 315511dc_5d79_6268_7d0c_1c4d5d3c7d98["getWarning()"] 25412732_fe43_a1af_4e27_4258101b41aa["postProcessBeanDefinitionRegistry()"] 25412732_fe43_a1af_4e27_4258101b41aa -->|calls| 315511dc_5d79_6268_7d0c_1c4d5d3c7d98 2001b5a3_f1dc_df2c_bad2_46aedfdd7fa4["getComponentScanningPackages()"] 315511dc_5d79_6268_7d0c_1c4d5d3c7d98 -->|calls| 2001b5a3_f1dc_df2c_bad2_46aedfdd7fa4 50b10d3b_dd9b_163c_653f_02346ab9e33b["getProblematicPackages()"] 315511dc_5d79_6268_7d0c_1c4d5d3c7d98 -->|calls| 50b10d3b_dd9b_163c_653f_02346ab9e33b style 315511dc_5d79_6268_7d0c_1c4d5d3c7d98 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer.java lines 140–149
@Override
public @Nullable String getWarning(BeanDefinitionRegistry registry) {
Set<String> scannedPackages = getComponentScanningPackages(registry);
List<String> problematicPackages = getProblematicPackages(scannedPackages);
if (problematicPackages.isEmpty()) {
return null;
}
return "Your ApplicationContext is unlikely to start due to a @ComponentScan of "
+ StringUtils.collectionToDelimitedString(problematicPackages, ", ") + ".";
}
Domain
Subdomains
Calls
- getComponentScanningPackages()
- getProblematicPackages()
Called By
- postProcessBeanDefinitionRegistry()
Source
Frequently Asked Questions
What does getWarning() do?
getWarning() is a function in the spring-boot codebase.
What does getWarning() call?
getWarning() calls 2 function(s): getComponentScanningPackages, getProblematicPackages.
What calls getWarning()?
getWarning() is called by 1 function(s): postProcessBeanDefinitionRegistry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free