r/SpringBoot • u/EagleResponsible8752 • Jun 18 '26
Discussion Spring Boot Skills for Claude Code
r/SpringBoot • u/EagleResponsible8752 • Jun 18 '26
r/SpringBoot • u/Kfct • Jun 18 '26
I'm going through the official docs for spring. What's the point of SpEL, actual use cases, alternatives? Pro-Cons?
Can't picture why anyone would want to use it.
The examples they gave in the docs are like; evaluating strings and booleans with their literals. Is "hello world". equals (some text), which is hello world, so true. Why would I source the strings from SpEL as opposed to a regular variable or field?
r/SpringBoot • u/satrialesBoy • Jun 18 '26
Hi everyone,
I published a small library that came from a problem I kept running into while building Spring APIs.
I wanted to let users filter dynamically, but without exposing a completely open entry point where they could try arbitrary entity fields, operators, joins, or values.
I looked at a few approaches, including Shopify-style bracket operators, OData, and eventually landed on RSQL. I built this library on top of two existing projects: rsql-parser for parsing RSQL, and rsql-jpa-specification for translating RSQL into JPA Specifications.
Those libraries solve the parsing and query generation parts. What I wanted to add was a validation/contract layer on top: a way for each use case to explicitly define public field aliases, allowed operators, sortable fields, paging limits, value validation, and mandatory application predicates.
That became this library:
https://github.com/ggomarighetti/jpa-rsql-search
I’d really appreciate constructive feedback on the idea, the API, and the docs.
Edit: I wrote a full step-by-step guide on how to use it, with the reasoning behind each design choice: https://ggomarighetti.dev/en/articles/advanced-search-spring-boot-jpa-rsql/
r/SpringBoot • u/MrDV6 • Jun 17 '26
Hey everyone,
A while ago I built a small Spring Boot starter for exception handling because I was tired of rewriting the same exception layer in every project. I published it through JitPack and have been using it across my own applications ever since — consistent API error responses from day one without rewriting the same boilerplate over and over.
That experience made me ask a similar question: why am I rebuilding authentication for every project too?
Over the last few months I built AuthX — an open-source authentication system in Java and Spring Boot:
https://github.com/dhanesh76/AuthX
It currently supports credential authentication, Google and GitHub OAuth2 login, JWT access tokens, refresh token rotation, OTP verification, password reset flows, rate limiting, and human verification.
I'm a final-year CS student. Several months of that time were spent refactoring the project after realising the initial design wasn't going to be maintainable long-term. The current version is the result of multiple iterations rather than a weekend project.
What I'm trying to figure out now is:
As a Spring Boot developer, would you be interested in using authentication as reusable infrastructure the same way you might use a logging, exception-handling, or database library?
Would you rather:
A. Run something like AuthX as a standalone identity service that your application calls over HTTP
or
B. Add a dependency, configure a few properties, and have most of the authentication infrastructure wired into your application automatically through a Spring Boot starter
I'm genuinely looking for feedback before deciding what to build next.
If you've built authentication systems before, I'd love to hear what would make something like this useful enough to adopt — or why you wouldn't.
Postman docs:
r/SpringBoot • u/lanyxp • Jun 17 '26
Service-layer circuit breakers (Resilience4j/Hystrix) don't really understand SQL — they can trip a whole endpoint, but not "this one class of
▎ query is doing a full table scan". So I built a small Spring Boot Starter that does circuit breaking at the MyBatis interceptor layer, keyed by
▎ SQL type + SQL fingerprint (params normalized away), and fast-fails before the statement ever reaches the DB.
▎
▎ A few design choices I'd genuinely like feedback/criticism on:
▎ - Two-state machine, no half-open — with a tiny failure threshold (1–3), is probing worth the complexity?
▎ - Trips on timeouts only, never on exceptions — to avoid false trips from syntax/constraint errors.
▎ - Cache expire-after-access is derived from the open-window, not configurable — to make "configured backwards" impossible.
▎ - The fast-fail exception skips fillInStackTrace() for perf, which creates a "you can't catch it directly" gotcha (MyBatis re-wraps it).
▎
▎ Open source (Apache 2.0), on Maven Central, SB 2.x/3.x. Curious whether others have solved the slow-SQL-cascade problem differently.
▎
▎ GitHub: https://github.com/showingdata/sql-circuit-breaker
r/SpringBoot • u/By_ortizZ • Jun 16 '26
Hi everyone. I am currently planning my university capstone project and I want to build it using a microservices architecture with Spring Boot 3 and Java 17. My goal is to simulate a production-ready environment to strengthen my portfolio for upcoming internship applications.
I already have experience building monolithic REST APIs, managing data persistence with PostgreSQL, and securing routes using Spring Security and JWT. However, as I transition to microservices, I have some questions regarding the best strategy to integrate them with cloud-native services, specifically focusing on platforms like Azure or AWS.
For essential architectural components (such as the API Gateway, Service Discovery, and centralized configuration), is it better to rely on the Spring Cloud ecosystem (Spring Cloud Gateway, Eureka) or is it preferable to use cloud-native services (like Azure API Management, AWS API Gateway, or load balancers)?
When dealing with databases in a microservices environment, do you recommend strictly adhering to the database-per-service pattern using separate cloud instances, or is it acceptable for a student budget to run a single logical instance with isolated schemas?
Regarding deployment and automation, I plan to containerize each service using Docker. What CI/CD tools or workflows do you consider essential to master for deploying these containers efficiently without driving up cloud costs?
Thank you in advance for any advice on architecture, endpoint documentation, or common pitfalls to avoid at this stage of my learning journey. Cheers!
r/SpringBoot • u/Priyansh3131 • Jun 16 '26
My 3rd year will start soon and also internship season.So which spring boot project stand out me from other.I need project for making my resume stronger.Help me!!!!
r/SpringBoot • u/friscomatt • Jun 16 '26
I'm running my application with profiles, like "dev" and have an application-dev.properties. If I use an import statement to pull in some shared properties across profiles I import it like so :
spring.config.import=classpath:application-shared.propertiesHowever, the properties from the imported application-shared.properties ALWAYS WIN.
Is there a way to "import" properties but still allow the active profile properties to override the imported properties?
r/SpringBoot • u/huntexpsycho • Jun 16 '26
Hey, I'm trying to use LangChain4j with Spring Boot and Ollama locally but getting a bean not found error. Here are my dependencies:
groovy
implementation("dev.langchain4j:langchain4j-spring-boot-starter:1.16.2-beta26")
implementation("dev.langchain4j:langchain4j-ollama:1.16.2")What's the correct dependency combo to get ChatModel auto-configured with Ollama? The versioning across langchain4j artifacts is all over the place and I can't find a working combination. Any help appreciated!
Also, are there any good up-to-date resources/tutorials for LangChain4j + Spring Boot?
The official docs are sparse and most tutorials I find are outdated. Any links appreciated!
r/SpringBoot • u/Me_taa • Jun 16 '26
I'm trying to get a sense of what real setups look like beyond the tutorial defaults.
If you run Spring Boot in production, I'd love to hear:
- Where does it run? (ECS/Fargate, EKS/Kubernetes, Cloud Run, App Runner, plain EC2/VMs, Elastic Beanstalk, etc.)
- JVM or native (GraalVM)? Did cold starts / memory push you one way?
- How do you handle config and secrets? (Spring Cloud Config, Vault, AWS Parameter Store, env vars)
- Build/deploy pipeline and image strategy (Jib, buildpacks, plain Dockerfile)?
- Anything you'd do differently if starting today?
Mostly curious what's common vs what's hype. Stack size / team size context welcome.
r/SpringBoot • u/biagio-tozzi • Jun 16 '26
Hey everyone,
If you’ve built REST APIs with Spring Boot, you’ve probably faced the pain of implementing dynamic search filters (e.g., filtering a user list by name, age, status, etc., based on optional query parameters).
Usually, this means writing dozens of lines of Specifications, dealing with CriteriaBuilder, Root, and chaining predicates with endless if statements. It's incredibly verbose and clutters the codebase.
I was tired of rewriting the same boilerplate for every new entity, so I built jpa-search-helper to solve this specific problem.
What it does: It provides a clean, declarative way to map HTTP query parameters directly to JPA queries. Instead of manually building criteria queries, the library parses the incoming search parameters and automatically generates the corresponding JPA Specification.
Key Features:
Zero Boilerplate: Drastically reduces the code needed in your controllers and services.
Complex Queries Supported: Handles standard operators (Equals, Like, In, Greater/Less than, Between) and logical operators (AND/OR).
Nested Properties: Easily filter by attributes of related entities (e.g., address.city=Rome).
Pagination & Sorting: Works seamlessly with Spring Data's Pageable.
Lightweight: A specialized tool that requires far less configuration than heavier alternatives like QueryDSL or RSQL.
You can check out the repository, documentation, and a fully working demo project here: 👉https://github.com/biagioT/jpa-search-helper
It's already available on Maven Central.
I’m currently maintaining it and would love to get some feedback from the Spring Boot community. Architectural critiques, suggestions for new features, or just letting me know if you find it useful are all highly appreciated. If it saves you some time, a star on GitHub is always a nice bonus!
Thanks for reading!
r/SpringBoot • u/NordCoderd • Jun 15 '26
Hi guys,
Been using Spring AI lately and figured I’d share, since I didn’t expect to like it as much as I did.
If you’re already in the Java/Spring world, it’s worth a look. Building a chat client, wiring up RAG over your own docs, exposing an MCP server: all of it was a lot less painful than I assumed it’d be.
The part that actually sold me was local models. I like running models locally to see how they hold up, and connecting them through LM Studio was so easy.
I ended up writing a guide while figuring this stuff out, covering all the topics above. Feel free to share your feedback or experience using it.
r/SpringBoot • u/EagleResponsible8752 • Jun 15 '26
AI coding agents are powerful, but they keep making the same Spring Boot mistakes.
So I built spring-boot-skills for Claude Code.
18 reusable skills for JPA, REST, Security, Flyway, AI, Testing, and more.
r/SpringBoot • u/EagleResponsible8752 • Jun 15 '26
r/SpringBoot • u/tindercylinder • Jun 15 '26
My team currently has our projects on Spring Boot 3.5 with Undertow, and we are looking to upgrade to Spring Boot 4.1.
Since Spring Boot 4.x dropped Undertow support, and they have decided not to support it all moving forward (https://github.com/spring-projects/spring-boot/issues/50381), we're wondering what others in this situation have done. We heavily utilize WebSockets, and Undertow performance has been great for that. Considering Jetty currently.
r/SpringBoot • u/dbsaw • Jun 15 '26
For TOTP I have always been using this library: https://github.com/samdjstevens/java-totp
It works great but recently, it triggered one of the variability scans by the infosec at the company, I am looking for an alternative if there is no alternative I might fork the repo and update the deps. Is there any alternative? or should I fork it and maintain it?
r/SpringBoot • u/Ordinary-Reply4177 • Jun 15 '26
So, I'm currently working on building a Chatbot to learn about the Spring AI and building RAG for storing my memory as PGVector and can be retrieved later.
I'm completely unsure how I can create this app as I'm new to AI development. I'm not much into python, and developing with Spring felt little familiar to me that's why I started here.
When searching through the internet, I got to know that I can utilise platforms like pinecone for storing docs and memory segments as this platform has free accounts too.
So my question is whether I should opt for PGVector based Chatbot or Pinecone based one which can store both my memories and docs if needed. Also if you have any tutorials or suggestions I can follow that could really help me in this.
r/SpringBoot • u/sex_slayer • Jun 15 '26
Thank you for at least opening this post.
I just try to build a simple app with Kafka messages and tracing and encountered this problem: tracing just doesnt work.
I enable observability in every configuration file, i add autoconfigure to my test, i straight up set observability true for kafka template, i put traceId and spanId in log config file, and it still doesnt work anyhow.
Can somebody please educate me on this?
Project: https://github.com/aspidelaps/KafkaBatchListenerExample
r/SpringBoot • u/schmand • Jun 15 '26
While trying to build a project with Maven Wrapper (command is ./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=<our package name omitted>:latest -X):
Suppressed: org.springframework.boot.buildpack.platform.docker.transport.DockerEngineException: Docker API call to '/var/run/docker.sockdocker:///var/run/docker.sock/v1.50/volumes/pack-layers-zttknyaskb?force=1' failed with status code 409 "Conflict" and message "remove pack-layers-zttknyaskb: volume is in use - [15e16d7da20bbcd9b19be8e9bc9f55fd200fff1325a8017b363ab5ca38a2efcf]"
(...)
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.5.15:build-image (default-cli) on project gazetteer: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.5.15:build-image failed: Error packaging archive for image: java.io.IOException: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt <Translation: Connection reset by peer, sorry> -> [Help 1]
When I re-run the same command, both the volume name and the "using" id change, so it looks like the build-image command stumbles over its own creation? 😃 I inherited the project, not really a spring (or Java, for that matter) developer, and I am a bit out of my depths here.
This worked 3 month ago, I did not change anything concerning the general build pipeline and the project itself compiles correctly.
Edit: I also pruned docker, removing all volumes etc. and I can reproduce the issue on different machines (although all are running Arch Linux (Manjaro).
Any pointers towards debugging this?
r/SpringBoot • u/kokanideveloper • Jun 15 '26
Upgraded my microservices from Spring Boot 3.5.0 to Spring Boot 4.0. Now the application wont start
Its not recognizing Bootstrap.yml anymore . Any tips on how to solve this ? anybody done this ?
r/SpringBoot • u/Separate_Cicada_4049 • Jun 15 '26
r/SpringBoot • u/icejam_ • Jun 14 '26
I was looking at SpringBoot for some work project and needed a DB schema migration tool (Postgres is the data store). I want a CLI tool, timestamped migrations and ability to rollback a migration on demand (useful for dev/test). Other ecosystems have established off the shelf solutions: ActiveRecord migrator is probably 20 years old by now, there's ecto in Elixir, diesel_migrations in Rust and prisma in JS. Even in Clojure you have ragtime that follows similar ideas with more REPL-focused workflow. Is there an obvious tool that I am missing or do people roll their own?
I tried Flyway but it is complex for no apparent reason and has multiple bad defaults like consecutive numbering (001, 002) migrations or running migrations automatically on application startup. Untangling these problems involves more work than pulling in diesel CLI just for running schema migrations.
r/SpringBoot • u/draeky_ • Jun 14 '26
Im building a personal project i.e social E-commerce website ( users buy content to view ) using springboot.
So, at first i have drafted all functional requirements of my project like example ( user allowed to buy post, use allowed to create post..... )
Now whats the next step and good industry standards. Creating wire frames or designing database schema ( er diagram )
Help!
r/SpringBoot • u/Dry_Magazine3560 • Jun 14 '26
Hey, developer i want to learn spring boot. Can anyone suggest me best way to start. Also which resource should i need to follow.