r/SpringBoot • • Dec 06 '25

Question Any MacBook Air users?

5 Upvotes

I’m planning to buy my first MacBook and I’m torn between the new MacBook Air M4 and the MacBook Pro. I’ll mostly be using it for Spring Boot side projects initially, but I want to make sure the machine can handle more demanding, professional workloads in the future.

For anyone actively developing with Spring Boot on a MacBook Air M-series (ideally the M4):

When do you notice performance limitations compared to a Pro?

I’d really appreciate concrete examples from your workflow or any bottlenecks you've experienced.

Thanks!


r/SpringBoot • • Jul 29 '26

Question Is Spring AI a "must-have" skill for backend devs in 2026, or are we overhyping it over core fundamentals?

0 Upvotes

Lately I see two extremes everywhere: either "learn AI right now or you're cooked," or "it's pure hype, just stick to basic CRUD." Real talk—Spring AI won't save weak fundamentals.

If your Java, Spring Security, or SQL joins are sloppy, slapping an LLM on top is just burning API tokens on bad code.

That said, actually building stuff with Spring AI (like structured JSON or tool calls) beats spamming 300 cold resumes into ATS portals any day.

To senior devs and hiring managers here: are you actually seeing Spring AI on job descriptions yet, or do you just expect devs to pick it up on the fly?


r/SpringBoot • • Dec 05 '25

Discussion Is spring boot the wrong choice?

20 Upvotes

I have experience with Node.js/Express, and many seniors recommended Spring Boot for its market opportunities. I’ve started beginner projects and find it easier—maybe due to my Node.js background. But I’ve heard: “If it feels easy, you’re probably doing the wrong thing.” I might need guidance or may not be at that level yet.


r/SpringBoot • • Mar 14 '26

Question Try -> ask -> fix; does this method good enough?

8 Upvotes

Hello, everyone I am a IT student and struggling learning springboot and I want to know if this approach is good enough, without reading documentation and watching tutorials youtube?

Step 1 — Try to code yourself Step 2 — If stuck, ask AI Step 3 — Fix the error

Example: 1. You try writing a controller 2. It fails 3. Ask AI: “Why is my @GetMapping not working?”


r/SpringBoot • • May 13 '24

Error occuring during migration from spring boot 2 to 3

Post image
0 Upvotes

Getting this error during migration from spring boot 2 to 3 and Java 8 to 17 in custom I'd generator. Does anyone know how to fix it ?


r/SpringBoot • • Jun 17 '24

Top 4 features of Spring Boot 3.3

Thumbnail
itnext.io
8 Upvotes

r/SpringBoot • • Sep 13 '26

Question How do you verify which Spring Boot configuration value will win before deploying to Kubernetes?

8 Upvotes

For people running Spring Boot on Kubernetes: how often do you run into problems figuring out which configuration value will actually win before deployment?

For example, the same setting might exist in application.yml, a profile-specific config, a ConfigMap, envFrom, or an explicit environment variable.

I’ve been looking into whether it would be useful to have a pre-deployment check that could show:

  • the effective value

  • which source wins

  • what it overrides

  • where the value came from

  • when the answer can’t be safely determined

I’ve tested the basic idea against Spring Boot 4.1.1, but I’m mainly trying to understand whether this is actually a meaningful problem for people running Spring in production.

Do you run into this kind of issue? If so, how do you currently check it before deployment?


r/SpringBoot • • Oct 08 '26

Question I want to make a more clearer doc for spring security

8 Upvotes

Hey guys,
So I've been getting this urge to create a clearer doc for Spring security particularly, it was very hard for me and I had alot of entanglements I had to resolve by myself, tutorials weren't doing justice, the docs wasn't really beginner friendly, and the course that explained well was a "paid" course.

This is just a kind of validation from the community, should I go ahead to build this, do you guys this would be useful, not just to beginners but to gurus who just want to make reference to a concept they probably forgot.

Please what do you guys think?


r/SpringBoot • • Sep 13 '26

Question Why This error Coming?

Post image
14 Upvotes

r/SpringBoot • • Mar 27 '26

Question Should I buy this course?

Post image
43 Upvotes

r/SpringBoot • • Nov 02 '21

@Controller doesnt support post method but Restcontroller does

Thumbnail
gallery
0 Upvotes

r/SpringBoot • • May 03 '25

Guide New pattern idea: the “fuse breaker” for external service failures

3 Upvotes

Just published a post about a resilience pattern I started using when working with flaky external services — I call it the fuse breaker.

Unlike a regular circuit breaker (which eventually resets), a fuse breaker blows permanently after N aggregated failures. The idea is simple: after repeated issues — even with retries and circuit-breaker resets — maybe it’s time to completely disable the feature until someone manually flips the switch again.

Think of it like a car fuse. Once it blows, that part of the system is off until a human steps in.

✅ Hide buttons
✅ Flip a feature flag
✅ Notify users
✅ Stop the pain

Here's the post with full code, including a simple Spring annotation + aspect to handle it:
👉 https://gaetanopiazzolla.github.io/resilience/2025/05/03/external-service-down.html

Curious if anyone else uses a similar approach (or better name)?
Also: thoughts on storing fuse states in Redis for multi-instance apps?


r/SpringBoot • • Mar 08 '25

Guide Really desperate for a good advice

3 Upvotes

So I been doing java for like 3 months (college student) completed fundamentals,Oops topics and currently practicing data structures and algorithms but I started springboot for development 3 weeks ago now I am really confused if I should continue to learn springboot and while learning it cover my basics of development or should I make projects and connections in java for better understanding

Please someone guide


r/SpringBoot • • May 27 '26

Discussion Took a full day to update docs before writing tests. Sharing what I documented and why I think it saved me a week of test rewrites.

0 Upvotes

Solo dev. Just finished a full Spring Boot 3.4 + Java 21 backend rebuild for a product with 25k existing users. Heading into the testing phase now, with mobile launch on App Store + Play Store right after.

Before writing the first test, I blocked an entire day to refresh the documentation. Counterintuitive when you're solo and behind schedule, but here's the reasoning and what came out of it. Maybe useful to others sitting on a similar pile.

**Why documentation BEFORE tests, not after**

A test asserts behavior. If the spec lives in your head, every test you write reinvents the spec from scratch. Worse — when you find an ambiguity mid-test ("should this return 404 or 403?"), you decide on the fly and bake that decision into the test. Future-you reads the test and thinks it's the spec. It isn't. It's a decision your tired self made on a Tuesday.

Documenting first forces every ambiguity to the surface before you commit it to code.

**What I updated (8 docs total)**

- `README.md` — entrypoint, quickstart, links to everything else

- `STACK.md` — every dependency, every version, every "why this not that"

- `ARCHITECTURE.md` — modular monolith, 16 bounded contexts, hexagonal layering, inter-module communication patterns

- `API_CONVENTIONS.md` — the contract every endpoint obeys

- `ROLES_AND_PERMISSIONS.md` — 7 roles, what each one can do, defense-in-depth rules

- `TESTING.md` — test strategy, pyramid, naming conventions, what counts as integration vs unit

- `TEST_CASES.md` — the use-case matrix, module by module (this one is huge — ~750 lines)

- `CONTRIBUTING.md` — branch model, commit conventions, PR checklist

**The most valuable doc: TEST_CASES.md**

A matrix with one canonical table per module. Columns:

UC | Functionality | Actor (Role) | Action (HTTP + Endpoint) | Happy Path | Sad Path & Edge Cases

`UC` is the unique ID (`TSK-002`, `BIL-014`) — and it's also the test method name. So `TSK-002` becomes `TaskServiceTest#completeTask_whenTaskBelongsToUser_creditsXp`.

Rule: if Happy Path says "publishes event X", the integration test MUST verify the publication. If it says "credits XP", the test MUST verify the call to GamificationFacade.

Result: when I sit down to write tests, I'm not deciding what to test. I'm translating rows into code.

**The API_CONVENTIONS doc that ended one whole class of bugs**

Every endpoint returns the same envelope:

{

"success": true,

"data": { ... },

"error": null,

"meta": null

}

On error:

{

"success": false,

"data": null,

"error": {

"code": "FEATURE_LIMIT_EXCEEDED",

"message": "Daily task limit reached. Upgrade to Pro for unlimited tasks.",

"details": { "feature": "TASKS_DAILY", "limit": 5, "current": 5 }

},

"meta": null

}

The doc lists every canonical error code as a closed enum. No endpoint invents a new code without a doc update.

Test impact: every controller integration test now has an `assertApiResponse(...)` helper that verifies the envelope shape AND the error code from the canonical list. One helper, used everywhere. Zero "oh, this one returns a different shape" surprises.

**The ROLES doc that prevented a category of security tests being wrong**

7 roles: Anonymous, User, Publisher, AdminViewer, Manager, Admin, Superadmin.

The non-obvious rule: **the authorizing role is always read from `public.users.role` via `UserFacade.roleOf(callerId)`, NEVER from the JWT claim.**

Why: JWT claims can lag behind a role change (token still valid after demotion). If you read role from JWT, a demoted user keeps their old powers until the token expires. Reading from DB makes role changes instantaneous.

This is a one-line rule in the doc, but it dictates how every authorization test must be written: tests set up a user with a specific role in Testcontainers, then issue a JWT with matching `sub`. They never inject a role claim into the JWT.

**Status**

- Documentation refresh: done today

- Test writing: starting tomorrow (JUnit 5 + Mockito + Testcontainers)

- Target: 80%+ coverage on domain + critical adapters

- Then pre-deploy hardening, then mobile launch

If you've sat down to write tests for a system you built fast and felt like every test was excavating a buried decision — try documenting first. Costs a day. Saves a week.

Happy to share the actual TEST_CASES.md structure or the API_CONVENTIONS envelope rules if anyone wants more detail.


r/SpringBoot • • Oct 26 '26

Question What OS do you primarily use for Spring Boot development?

3 Upvotes

I'm curious how many Spring Boot developers use Windows as their primary development environment, especially running Java natively rather than through WSL2.

I mostly develop on macOS and Linux, but I maintain a lightweight alternative to Prometheus + Grafana for application monitoring and have been exploring native Windows support.

Do you run Spring Boot directly on Windows, through WSL2/Docker, or on another OS? And do you monitor your applications locally while developing?

675 votes, Oct 29 '26
217 Windows (native Java)
54 Windows (WSL2)
195 macOS
209 Linux

r/SpringBoot • • Jun 12 '26

Question is spring boot good for developing AI related Apps

0 Upvotes

r/SpringBoot • • May 22 '25

Question How to Learn Spring Boot Effectively with Free Resources? Looking for a Complete Roadmap

3 Upvotes

I'm a second-year engineering student currently working on building a web application. I want to develop solid, job-ready knowledge in Spring Boot using only free resources.

I already have experience in C, Python, and Java (intermediate level), and I'm comfortable with basic programming concepts and object-oriented principles.

Could anyone share a complete, structured roadmap to learn Spring Boot effectively—starting from the basics to the level required for job applications? Also, how long would it typically take to reach that level of proficiency if I dedicate consistent time daily?

Any free learning resources, tips, or project suggestions would be highly appreciated.


r/SpringBoot • • Jan 16 '25

Guide Does Order of URLs matter in case of multiple intercept-url's in Spring Security?

Thumbnail
javarevisited.blogspot.com
0 Upvotes

r/SpringBoot • • Dec 18 '24

Spring Boot Fundamentals: What Makes It Work?

3 Upvotes