Comprehensive guide to Spring Boot fundamentals - auto-configuration, starters, properties, and profiles
Provides Spring Boot fundamentals for building production-ready applications. Use when creating Spring Boot projects, configuring auto-configuration, starters, properties, or profiles.
/plugin marketplace add pluginagentmarketplace/custom-plugin-spring-boot/plugin install spring-boot-assistant@pluginagentmarketplace-spring-bootThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/config.yamlassets/schema.jsonreferences/GUIDE.mdreferences/PATTERNS.mdscripts/validate.pyMaster Spring Boot fundamentals including auto-configuration, starters, externalized configuration, and profile management.
This skill provides comprehensive knowledge for building production-ready Spring Boot applications from scratch.
| Name | Type | Required | Default | Validation |
|---|---|---|---|---|
spring_version | string | ✗ | 3.3.x | Semver format |
java_version | number | ✗ | 21 | 17, 21, or 23 |
build_tool | enum | ✗ | maven | maven | gradle |
packaging | enum | ✗ | jar | jar | war |
application.properties/yml@Profile@ConfigurationProperties@ConditionalOnProperty, @ConditionalOnClass@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
@ConfigurationProperties(prefix = "app")
@Validated
public record AppConfig(
@NotBlank String name,
@NotNull Database database,
List<String> allowedOrigins
) {
public record Database(
@NotBlank String url,
String username,
String password,
@Min(1) @Max(100) int poolSize
) {}
}
# application.yml
app:
name: my-service
database:
url: jdbc:postgresql://localhost:5432/mydb
username: ${DB_USER}
password: ${DB_PASSWORD}
pool-size: 10
allowed-origins:
- http://localhost:3000
- https://myapp.com
# application-dev.yml
spring:
config:
activate:
on-profile: dev
datasource:
url: jdbc:h2:mem:devdb
---
# application-prod.yml
spring:
config:
activate:
on-profile: prod
datasource:
url: jdbc:postgresql://${DB_HOST}:5432/proddb
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
endpoint:
health:
show-details: when_authorized
probes:
enabled: true
| Scenario | Max Retries | Backoff | Notes |
|---|---|---|---|
| Config server connection | 6 | 1s, 1.5x multiplier | Use spring.config.import |
| Database connection | 3 | 2s exponential | Configure in connection pool |
| Issue | Diagnosis | Fix |
|---|---|---|
| Bean not created | Check @ConditionalOn* | Run with --debug flag |
| Property not binding | Wrong prefix or type | Validate YAML syntax |
| Profile not active | Not set in env | Use -Dspring.profiles.active |
□ Run with --debug to see auto-configuration report
□ Verify property sources with /actuator/env
□ Confirm active profiles with /actuator/info
□ Check application.yml indentation
@SpringBootTest
class ApplicationConfigTest {
@Autowired
private AppConfig appConfig;
@Test
void shouldLoadConfiguration() {
assertThat(appConfig.name()).isEqualTo("my-service");
assertThat(appConfig.database().poolSize()).isEqualTo(10);
}
}
Skill("spring-boot-basics")
| Version | Date | Changes |
|---|---|---|
| 2.0.0 | 2024-12-30 | Production-grade with examples, troubleshooting |
| 1.0.0 | 2024-01-01 | Initial release |
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.