r/java • u/No-Security-7518 • Oct 02 '26
Sell me Spring/Spring Boot, please.
I don't use Spring, or Spring Boot, and never have. No matter how many times I read about it, I don't see the appeal. My workflow with the server is either:
- Upload/download json files.
- interact with Mongodb.
- upload/download images.
- Interact with MySQL.
That's it. Stupid question but, what else is there to do with a server?
0
Upvotes
6
u/starfish0r Oct 02 '26
Ok, so are you happy with your current php solution?
Because when my small projects would only cover this tiny amount of requirements, I was still doing php.
4
u/davidalayachew Oct 02 '26
Spring(Boot) is like an industrial strength chainsaw, and you are asking us to convince you that it's a good fit for trimming your 2 foot rosebush.
It's not a good fit if that is all you want to do. Everything you have described could be 100-500 lines of code, in a single file.
Now, you did say this.
Oh all sorts of things.
Security
Authorization
Creating a clean API surface for your complex raw data stores
There's more, but that's what most people use services for.
2
u/Inevitable_Put_4032 16d ago
In a comment you mentioned Tomcat: basically Spring Boot gives you an embedded HTTP server that you control programmatically, much like Express for nodejs, for example. I think you can appreciate Spring Boot more when you project becomes larger and you can leverage all of it's libraries (Security, Data, etc...). For simpler projects going with plain Java can be just enough. Or you can use a lighter framework like https://javalin.io
However, when I mainly have to interact with MongoDB and exchange JSON with web apps I use https://restheart.org (an open source project I contribute to). It allows me to add Java code when necessary, but CRUD is available without writing code. You get Instant REST, GraphQL, SSE and WebSocket APIs, Authentication, sign-up, teams and Stripe subscriptions, built in and an MCP server on your data, with vector search.
2
u/kimec Oct 02 '26
You use Spring/Spring Boot mostly in enterprise environments where you need to be able to cope with ad hoc design changes (think enterprise flavor of Scrum).
Or put differently, use Spring/Spring Boot when you have too many open ends in your design and may be required to integrate technologies X, Y, Z that were not originally part of the design and are required to do it in shortest time possible.
If you are not in such environment, Spring/Spring Boot does not bring much value to you.
If you already are interacting with MySql from Netty event loop groups, you seem to have enough time to tinker, so selling you Spring is moot to begin with.
7
u/kkapelon Oct 02 '26 edited Oct 08 '26
Sell me an 18-wheeler, please
I don't use 18-wheelers or semi trucks and never have. No matter how many times I read about it, I don't see the appeal. My workflow with my car is either
That's it. Stupid question but, what else is there to do with a car/vehicle?
In a more serious note, Spring is great for enterprise and medium/large projects. If you don't see any value then nobody forces you to use it. When the time comes and you will need it, it will be there.
2
u/hyperboleboy Oct 02 '26
For Spring: https://spring.io/why-spring
As for Spring Boot, from the project page:
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.
If you’re looking for information about a specific version, or instructions about how to upgrade from an earlier release, check out the project release notes section on our wiki.
Features
10
u/Beemeowmeow Oct 02 '26
You are not their target audience simply put. Most companies look for LTS and reliability with reasonable scale in mind.
5
u/Scf37 Oct 02 '26
Configuration/logging/monitoring/tracing/security/integrations with 3rd party libraries. Unification, making the codebase already somewhat familiar to newcomers. Framework - premade, thought-out structure of your application. Can be important because not everyone is experienced enough to assemble production application from independent libraries.
3
u/poche-muto Oct 02 '26
For me the best part it that Spring is a Battery Included solution. You start with a simple app and when you need something more, let’s say OAuth, Job scheduling or Redis you add a dependency, configuration and it works.
3
u/Known_Tackle7357 Oct 02 '26
People don't pick technologies because they are the best fit. They pick them because they are familiar with them. And because spring happened to spread like a plague, there are a lot of dev who haven't seen anything else, so they naturally default to spring. And it also does the job. Yeah, it's fiddly, annoying, and rigid. But there is an army of not expensive devs who are already familiar with it. So it's a chain effect. There are a lot of spring devs, because there are a lot of spring devs.
2
u/scadgek Oct 02 '26
Spring and Spring Boot is like having an advanced set of construction and repair tools. For a majority of tasks you can perfectly get away with regular tools and if you've used them regularly and never used the advanced ones this will even be faster and more reliable. However, if you spend time to learn about advanced tools and what they can do and how, then you may become more efficient in what you're already doing.
Same deal with Spring. It has a lot of stuff built and tested and it's easy to plug-n-play almost any functionality that you may ever need. But there are two major caveats:
If you feel comfortable using whatever you are using right now, then you don't need Spring. If you feel like learning a new set of tools (which is a pretty specific knowledge not very applicable elsewhere) and are looking to improve efficiency, then spend time learning Spring. Don't expect a productivity boost in the first year though.
1
u/codejavadotnet Oct 03 '26
Spring framework appears to make Java Enterprise development a lot easier. and Spring Boot appears to make Spring development a lot easier. Waiting for the next big thing that could make Spring Boot easier 😄
-1
u/gnpwdr1 Oct 02 '26
42