Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
中文简介正在准备中。当前显示原文说明。
Spring Boot 4.0 patterns for enterprise Java 25 applications
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Layered architecture: controller (REST), service (business logic), repository (data access), model/entity, dto, config, exception.
Constructor injection preferred. Use @RequiredArgsConstructor with final fields. Avoid field injection with @Autowired.
// GOOD: Constructor injection
@Service
@RequiredArgsConstructor
public class UserService {
private final UserRepository userRepository;
private final EmailService emailService;
}
@RestController + @RequestMapping. Use @Validated for input, ResponseEntity for responses, proper HTTP status codes.
See examples/controller-example.java for reference implementation.
Business logic in services. @Transactional boundaries at service level. Interface + implementation pattern.
See examples/service-example.java for reference implementation.
Spring Data JPA. @Query or method naming for custom queries. @Entity with proper JPA annotations.
See examples/repository-example.java and examples/entity-example.java for reference implementations.
@RestControllerAdvice for global handling. Domain-specific exceptions with proper HTTP status mapping.
See examples/exception-handler-example.java for reference implementation.
Profile-based: application-{profile}.yml. @ConfigurationProperties for type-safe config. Externalize sensitive values.
# application.yml
spring:
profiles:
active: ${SPRING_PROFILES_ACTIVE:local}
datasource:
url: ${DATABASE_URL}
username: ${DATABASE_USERNAME}
password: ${DATABASE_PASSWORD}
See examples/config-properties-example.java for type-safe configuration properties.
Spring Security with SecurityFilterChain. Externalize secrets. Proper authentication/authorization patterns.
See examples/security-config-example.java for reference implementation.
@WebMvcTest (controller), @DataJpaTest (repository), @SpringBootTest (integration), @MockBean for mocking.
See examples/controller-test-example.java and examples/repository-test-example.java for reference implementations.
Always: constructor injection, layered architecture, DTOs, global exception handling, externalized config, proper security, layer-appropriate tests.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
中文简介正在准备中。当前显示原文说明。
Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile
中文简介正在准备中。当前显示原文说明。
Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation
中文简介正在准备中。当前显示原文说明。
Apache Airflow best practices for DAG authoring, testing, and production deployment
中文简介正在准备中。当前显示原文说明。
Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration
中文简介正在准备中。当前显示原文说明。
Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)
中文简介正在准备中。当前显示原文说明。