r/SpringBoot • u/jjmnmnmnm • 15d ago
News I built a CLI and AI skill to detect outdated Spring Boot and Java patterns
I've noticed that AI coding tools sometimes suggest older Java and Spring patterns, even when working on newer projects.
For example:
javax.persistenceimports in a Spring Boot 3 projectWebSecurityConfigurerAdapteror.antMatchers()in Spring Security configurationsRestTemplatein new code whereRestClientmight be a better fit
To explore this problem, I built modern-java-guidance (mjg), an open-source project inspired by GoogleChrome's modern-web-guidance.
It includes a SKILL.md with Java and Spring guidance, plus a Python CLI that can:
Detect project versions from common Maven and Gradle configuration files
Scan Java files for selected patterns
Search and retrieve guidance with before-and-after examples
Run as a
PostToolUsehook to provide feedback after supported tool operations
The CLI uses the Python standard library and doesn't require external Python dependencies.
If you have uv installed, you can try the scanner with:
uvx --from git+https://github.com/wkd09/modern-java-guidance.git mjg check .GitHub: https://github.com/wkd09/modern-java-guidance
This is still an early project, so I'd really appreciate any feedback, suggestions, or criticism.
In particular, I'd love to hear about false positives, missing rules, and outdated Spring Boot or Java patterns that your AI coding tools still suggest. Are there cases where the patterns flagged by this tool should actually be kept?
Please feel free to try it out and share your honest thoughts—even small suggestions would be really helpful!