a-pavithraa/springboot-skills-marketplace / plugins/springboot-architecture/skills/creating-springboot-projects
creating-springboot-projects
VerifiedUse when starting a new Spring Boot project or service: scaffolding or bootstrapping a backend, REST API, microservice or modular monolith; choosing how to structure it (layered, package-by-module, modular monolith, tomato, DDD-hexagonal); selecting Spring Boot 4 features; generating the base project with progen or Spring Initializr; or applying the bundled templates and references in this skill. Not for migrating existing projects or for isolated JPA/repository work without broader project-creation context.
assets/spring-converter.java
View on GitHubpackage {{PACKAGE}}.{{MODULE}}.rest.converters;
import {{PACKAGE}}.{{MODULE}}.domain.vo.{{NAME}};
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
/**
* Spring Converter for Value Object binding in @PathVariable and @RequestParam.
*
* Enables:
* @GetMapping("/{code}")
* public Response get(@PathVariable ProductSKU code) { ... }
*
* Instead of:
* @GetMapping("/{code}")
* public Response get(@PathVariable String code) {
* ProductSKU sku = ProductSKU.of(code); // Manual conversion
* }
*/
@Component
public class StringTo{{NAME}}Converter implements Converter<String, {{NAME}}> {
@Override
public {{NAME}} convert(String source) {
return {{NAME}}.of(source);
}
}
// ============================================================
// EXAMPLES
// ============================================================
// --- ProductSKU Converter ---
// @Component
// public class StringToProductSKUConverter implements Converter<String, ProductSKU> {
// @Override
// public ProductSKU convert(String source) {
// return ProductSKU.of(source);
// }
// }
// --- ProductId Converter (Long to Value Object) ---
// @Component
// public class StringToProductIdConverter implements Converter<String, ProductId> {
// @Override
// public ProductId convert(String source) {
// return ProductId.of(Long.parseLong(source));
// }
// }
// --- Email Converter ---
// @Component
// public class StringToEmailConverter implements Converter<String, Email> {
// @Override
// public Email convert(String source) {
// return Email.of(source);
// }
// }
// ============================================================
// USAGE IN CONTROLLER
// ============================================================
// @RestController
// @RequestMapping("/api/products")
// class ProductController {
//
// // With converter - clean, type-safe
// @GetMapping("/{sku}")
// public ProductVM getProduct(@PathVariable ProductSKU sku) {
// return queryService.getBySku(sku); // Already a Value Object!
// }
//
// @GetMapping("/search")
// public List<ProductVM> search(@RequestParam Email email) {
// return queryService.findByEmail(email);
// }
// }
// ============================================================
// REGISTRATION (Usually automatic with @Component)
// ============================================================
// If converters aren't picked up automatically, register explicitly:
//
// @Configuration
// public class WebConfig implements WebMvcConfigurer {
// @Override
// public void addFormatters(FormatterRegistry registry) {
// registry.addConverter(new StringToProductSKUConverter());
// registry.addConverter(new StringToProductIdConverter());
// registry.addConverter(new StringToEmailConverter());
// }
// }
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |