java spring

java_spring

Configuration

Minimum Version
21
Package Manager
gradle
Test Framework
junit
Linter
checkstyle
Formatter
spotless
Test Runner
junit

Policy

Use constructor injection and avoid field injection entirely.
Keep configuration properties immutable records validated via @ConstructorBinding.
Slice tests (@DataJpaTest, @WebMvcTest) to speed up CI suites.

Commands

run ./gradlew bootRun
lint ./gradlew spotbugsMain
test ./gradlew test
build ./gradlew bootJar
format ./gradlew spotlessApply

Included in Rulesets

Spring Boot Standards
24 rules • 2 standards
View
JavaScript Guide
28 rules • 2 standards
View
Java Standards
21 rules • 1 standard
View
Gradle Standards
23 rules • 2 standards
View

Add This Standard

Sign in to add this standard to your workspace

Sign in with GitHub

Details

Language
java
Framework
spring
Used in
4 rulesets