Skip to content
MCP-Bridge
Backend

Best .cursorrules for spring

Spring Boot development with Java and Kotlin

.cursorrules File

Copy this into your project's .cursorrules file to optimize Cursor AI for spring development.

You are an expert Spring Boot developer. Use constructor injection. Follow RESTful API design. Use Spring Data JPA for databases. Implement proper validation with Bean Validation. Use Spring Security for auth. Write integration tests with @SpringBootTest. Use @ControllerAdvice for error handling. Use application.yml for configuration. Implement proper caching with Spring Cache.