Reviewed by 20X · No signed release verified
- Works with (as stated by the author)
- GitHub Copilot
Review details
- Human review
- Review recorded for these files
- Limited checks
- Limited checks recorded (v2.1.0)
- Source
- Source not verified
A verified signature checks published file bytes against a trusted publisher’s signed manifest. It does not verify safety, authorship, rights or assistant use.
Declarations and limited checks do not guarantee safety or sharing rights. Review the files before use. Access that the author has not stated is unknown.
How to use it
- 1Save the file in your repository under .github/instructions/.
- 2Check the applyTo pattern at the top of the file and narrow it to the files it should cover.
- 3Commit the file so everyone using GitHub Copilot in the repository gets the same guidance.
Community results
0 reportsNo one has shared a result yet.
1 file. Filenames and raw files are in Technical details.
description: 'Guidelines for building Spring Boot base applications' applyTo: '**/.java, **/.kt'
Spring Boot Development
General Instructions
- Make only high confidence suggestions when reviewing code changes.
- Write code with good maintainability practices, including comments on why certain design decisions were made.
- Handle edge cases and write clear exception handling.
- For libraries or external dependencies, mention their usage and purpose in comments.
Spring Boot Instructions
Dependency Injection
- Use constructor injection for all required dependencies.
- Declare dependency fields as
private final.
Configuration
- Use YAML files (
application.yml) for externalized configuration. - Environment Profiles: Use Spring profiles for different environments (dev, test, prod)
- Configuration Properties: Use @ConfigurationProperties for type-safe configuration binding
- Secrets Management: Externalize secrets using environment variables or secret management systems
Code Organization
- Package Structure: Organize by feature/domain rather than by layer
- Separation of Concerns: Keep controllers thin, services focused, and repositories simple
- Utility Classes: Make utility classes final with private constructors
Service Layer
- Place business logic in
@Service-annotated classes. - Services should be stateless and testable.
- Inject repositories via the constructor.
- Service method signatures should use domain IDs or DTOs, not expose repository entities directly unless necessary.
Logging
- Use SLF4J for all logging (
private static final Logger logger = LoggerFactory.getLogger(MyClass.class);). - Do not use concrete implementations (Logback, Log4j2) or
System.out.println()directly. - Use parameterized logging:
logger.info("User {} logged in", userId);.
Security & Input Handling
- Use parameterized queries | Always use Spring Data JPA or
NamedParameterJdbcTemplateto prevent SQL injection. - Validate request bodies and parameters using JSR-380 (
@NotNull,@Size, etc.) annotations andBindingResult
Build and Verification
- After adding or modifying code, verify the project continues to build successfully.
- If the project uses Maven, run
mvn clean package. - If the project uses Gradle, run
./gradlew build(orgradlew.bat buildon Windows). - Ensure all tests pass as part of the build.
Useful Commands
| Gradle Command | Maven Command | Description |
|---|---|---|
./gradlew bootRun | ./mvnw spring-boot:run | Run the application. |
./gradlew build | ./mvnw package | Build the application. |
./gradlew test | ./mvnw test | Run tests. |
./gradlew bootJar | ./mvnw spring-boot:repackage | Package the application as a JAR. |
./gradlew bootBuildImage | ./mvnw spring-boot:build-image | Package the application as a container image. |
Latest changes
Initial reviewed release.
Version history
v1.0.0
Initial reviewed release.
File access pausedFile verification
- File integrity
No signed release verified for this version.
This checks published bytes, not safety, authorship, rights or assistant use.
Full compatibility
As stated by the author: GitHub Copilot
Included files
1 filespringboot.instructions.md
markdownPublic file access is temporarily paused.
Use in your own tool
Save this resource and connect your assistant in the Use with flow before copying a test request.
Related resources
Vue.js Guidelines
Vue 3 guidance: Composition API, components, state, performance, and testing.
GitHub Copilot, VS Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
Power BI Report Design
Report design guidance: layout, visuals, accessibility, and storytelling in Power BI.
GitHub Copilot, VS Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
Devil's Advocate Mode
A Copilot custom agent that stress-tests ideas by finding flaws, risks, and edge cases.
GitHub Copilot
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11