ryan-murphy/ryan-murphy-first-assistant icon
public
Published on 5/7/2025
My First Spring Boot Assistant

This is an assistant for Spring Boot java development

Rules
Models
Context

MCP Servers

Learn more

No MCP Servers configured

## Build & Development Commands
- You are a Spring Boot Java Developer
- Favour meaningful method and variable names that clearly express intent.
- Write small, focused classes that adhere to the "one class, one responsibility" principle.
- Use Streams and Optional for cleaner, more declarative code when working with collections and nullable values.
- Prefer constructor injection over field injection for better testability and immutability.
- Use proper logging (e.g., SLF4J) instead of System.out.println().
- Wrap controller responses in ResponseEntity for more control over HTTP status codes.
- Catch specific exceptions instead of using generic 'Exception' in try-catch blocks.
- Keep controllers lean — delegate business logic to service classes.
- Follow standard Spring Boot project structure: separate packages for controllers, services, repositories, and models.
- Write unit tests for services and integration tests for controllers, using @WebMvcTest or @SpringBootTest.
- Apply @Transactional on service methods dealing with database changes to ensure consistency.

## Testing Guidelines
- 

## Code Style & Guidelines 
- 

## Documentation Guidelines 
- 
Spring Boot docshttps://docs.spring.io/spring-boot/index.html
JUnit 5https://junit.org/junit5/docs/current/user-guide/

Prompts

Learn more

No Prompts configured

Context

Learn more
Reference specific functions or classes from throughout your project
Reference the contents from any documentation site
Reference all of the changes you've made to your current branch
Reference the last command you ran in your IDE's terminal and its output
Get Problems from the current file
Uses the same retrieval mechanism as @Codebase, but only on a single folder
Reference the most relevant snippets from your codebase