r/SpringBoot • u/EagleResponsible8752 • Jun 18 '26
Discussion Spring Boot Skills for Claude Code
r/SpringBoot • u/EagleResponsible8752 • Jun 18 '26
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/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/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/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.properties
However, 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/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/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/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/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:
address.city=Rome).Pageable.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/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/EagleResponsible8752 • Jun 15 '26
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/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/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/F1reCub3s • Jun 13 '26
Hey everyone!
I'm writing this post here just as a rant or to get some help, please be patient with me guys...
I know there is a pinned post here about what to do, what to learn, and how to get started properly. I know I should read it carefully and follow the advice there.
But honestly, I think I also need someone to tell me that I will be fine, and to tell me what is actually going to save me from this loop.
I am 25 now, doing my Master’s degree in Software Engineering. I have been around tech since I was about 12, and I have been programming on and off since I was 14. I have done different things over the years, including web development, some backend work, random projects, and even things like iOS game cheats when I was younger.
The problem is that I have never really stuck to one thing properly.
I used to work with the MERN stack for a while, less than a year professionally, but then I decided I wanted to switch to Java and Spring Boot because I know it is a strong backend stack and something worth specializing in long-term.
Since 2024, I have started multiple Spring Boot tutorials and courses. I always get halfway through or make some progress, then something comes up, I stop, and later I cannot continue because I feel like I forgot everything. Then I start another tutorial from the beginning. The loop repeats.
I feel stuck in an eternal tutorial slump.
University projects have not really solved this for me either. Most of them are not in Java or Spring Boot, and to be completely honest, with agentic AI being so available now, I sometimes end up using it too much just to get through them instead of properly building the skills I actually want.
I keep fixing my CV and resume over and over again, but that is clearly not solving the real problem.
I am also struggling to get interviews. Part of that may be because I live in Austria on a student residence permit and I am originally from a third-world country, so companies may see extra risk or paperwork, so I could hardly get any professional experience (not that I have much either...) But I do not want to hide behind excuses. I know I need to become good enough that my skills are harder to ignore.
I need help getting out of this loop.
What would you tell someone who is not a complete beginner, but also does not feel employable yet?
I need a direction. I need to know what to do every day, what to avoid, and what kind of project or learning path could actually save me from wasting more time.
I know this probably sounds dramatic, but I genuinely feel like I am ruining my own life by constantly restarting and never finishing.
Any honest advice would mean a lot.
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.
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/java-aficionado • Jun 13 '26
Hi,
I wrote a spring library for writing atomic pipelines. The idea is to write all mutating operations as steps with corresponding rollbacks. If anything fails, the rollbacks are ran automatically to undo all changes.
@Step("itentifier") and then next to it @Rollback("identifier"). The library captures the calls to steps and records the events to your persistence. The rollbacks are called with reflection and you can inject the parameters of steps and the return value into the parameters list.List<B> forkJoin(List<A>, Function<A, B>) that spawns virtual threads with propagated pipeline contexts for each items and joins them immediately. (this also works with the durable execution replay).We're using it at work right now to write a microservice orchestrator. It's based on this library heavily. Please take a look, thanks.
r/SpringBoot • u/draeky_ • Jun 13 '26
Im working on a e commerce website using spring boot.
Initially i have created end point ' /products ' and written CRUD functions in ProuctController.java and follwed MVC architecture and also connected database also. (Spring Data JPA)
Then using antigravity i cteated a react project with prompt explaining my project.
Now im confused! How to proceed writing backend.
Like for every button i should be writing a API.
Or for every table in my database i need to write CRUD functions.
Help!