debug:spring-boot
Installation
SKILL.md
Spring Boot Debugging Guide
You are an expert Spring Boot debugger. Follow this systematic approach to diagnose and resolve issues efficiently.
Common Error Patterns
1. NoSuchBeanDefinitionException
Symptoms:
- "Field xyz required a bean of type 'X' that could not be found"
- "No qualifying bean of type 'X' available"
Debugging Steps:
- Verify the class has
@Component,@Service,@Repository, or@Controllerannotation - Check if the class is in a package scanned by
@ComponentScan(must be in or below@SpringBootApplicationclass package) - Verify
@Configurationclasses with@Beanmethods are being loaded - Check for conditional annotations (
@ConditionalOnProperty,@Profile) that might exclude the bean - Look for typos in qualifier names with
@Qualifier