r/SpringBoot • • Dec 13 '24

Hackathons and Open source

24 Upvotes

I am fresh grad just started my job as a backend dev at a product based company 5 months ago..our product is stable and comapny has good culture..my stack here is java springboot...but i just wanted to try out new things like hackathons or open source work but i am confused how to start/ where to find? Company does offer innovative ideas to work on but as corporate processes are slow i am kinda bored with my routine


r/SpringBoot • • Oct 16 '24

8 Books to Learn Spring Boot and Spring Cloud

Thumbnail
javarevisited.blogspot.com
24 Upvotes

r/SpringBoot • • Sep 20 '24

OC i dont want this much detail it is irritating. how can i make only java files visible

Post image
24 Upvotes

r/SpringBoot • • Aug 29 '24

REST API best practices?

24 Upvotes

I want to write better api's. So could you guys help me with some of the practices you have followed over the years.


r/SpringBoot • • Aug 23 '24

Interface for each service?

24 Upvotes

Hi Everyone!

I’m a bit confused about the use of interfaces for all services in Spring Boot. I understand that interfaces serve as a contract and offer benefits like easier testing and flexibility for future changes. However, I’ve also read that if you’re not planning to have multiple implementations of a service, using interfaces might be unnecessary. Could you clarify the best practices for using interfaces in this context, and explain how they impact dependency injection and testing?


r/SpringBoot • • Aug 08 '24

50 Hibernate and JPA Interview Questions Answers for 3 to 5 Years Experienced Java developers

Thumbnail
javarevisited.blogspot.com
24 Upvotes

r/SpringBoot • • Aug 03 '24

Deploying of a spring boot &angular app

24 Upvotes

Hi I created a spring boot & angular application with mysql as a database and i want to learn how to deploy it. Is there any videos or articles I can follow because honestly i do not have any idea where to start from


r/SpringBoot • • Jul 21 '24

docker, kafka, kubernetes

24 Upvotes

I've been struggling with my recent job change. I only recently know that the industry requires docker, kafka, and Kubernetes from developers. I didn't know this until spring not too long ago. I'm currently taking devops lectures at Udemy. I have experience with Linux and servers but no experience with these tools lately. It's my fault for not detecting the change. How fast it changes..!😵‍💫😱😭


r/SpringBoot • • Jul 04 '24

What Do You Recommend to Become a Hireable Spring Boot Dev?

24 Upvotes

Hi, guys!

I've created some little REST-api projects that contains silly basic biz logic.

Those projects involved desining & setting-up the database using MySQL.

The relationships between entities were one-to-one, one-to-many, and many-to-many.

Created the model classes, DTOs, repos, mappers, tested The mappers using JUnit.

Then the service layer. Tested using Junit & Mockito.

In the service layer, I've implemented some raw sql queries using entity manager native queries(They involved joins) to retrieve some potentially useful data.

I've also implemented caching using Redis.

Created the REST Controllers. Implemented a basic Role-Based Access security. (This was mainly copy-paste. I struggle to get Spring Security)

Document The APIs it using Swagger. and consume them using webClient.

Add data validation and test it using JUnit. as well as handling exceptions.

What you recommend as a next learning move to become hireable?

Should I learn HTML, Spring MVC, and Thymeleaf? Maybe add HTMX?
Or Maybe Learn JS and potentially a JS FE framework?

What backend tasks you mainly do in a professional environnement?

Thank you guys!


r/SpringBoot • • Nov 14 '23

Roadmap for springboot

24 Upvotes

I am working in backend (php) in my company, but I also want to learn springboot in my away time since I have seen recruiters hiring specifically for springboot. I am well versed in java. Can Someone tell me where to start and what are the prerequisites and what should I focus on while learning springboot.


r/SpringBoot • • Nov 10 '23

How is the job market for springboot/Java developers right now?

24 Upvotes

Is there a demand for spring devs because how slow the market is right now?


r/SpringBoot • • Oct 20 '22

what beans exactly are

24 Upvotes

Hi there, I recently started web dev with spring, and i don't quite get what beans are and what's there utility

Like i know that they are java object, but that's it And why we need a bean factory since we are creating the classes ourselves


r/SpringBoot • • Apr 12 '20

An ebook about Spring Security

24 Upvotes

I am working on writing an ebook about Spring Security. Few things I plan to cover in this book

  • What is Spring Security?

  • Why you should use Spring Security in your web application?

  • Detail explanation of different components of Spring Security

  • A demo of using Spring Security in a web application

Would anyone be interested to read such a book?


r/SpringBoot • • Sep 06 '26

Question Free hosting options for a containerized Spring Boot (Kotlin) + Postgres + S3 stack?

23 Upvotes

I'm developing a personal side-project to use with a small group of friends.

My architecture consists of:

  • Backend: Spring Boot (Kotlin / Gradle), containerized with Docker

  • Database: PostgreSQL, in dev with a docker instance

  • Storage: S3-compatible object storage (currently using MinIO in local dev)

Since this is purely a non-commercial project for personal use, I am looking for 100% free hosting options (or a combination of free tiers across different services).

Requirements / Preferences:

  • Enough RAM/resources for the JVM/Spring Boot context to start up smoothly without hitting aggressive OOM killers.

  • Persistent storage for Postgres and S3.

  • No credit card required upfront if possible.

  • A short delay on cold start is totally fine.

For the frontend, I'm building and distributing an APK directly, so I only need hosting for the backend ecosystem.

Are there any reliable free-tier services or combinations (e.g., separating app, database, and storage providers) that you would recommend for this setup in 2026?

Thanks!


r/SpringBoot • • Aug 20 '26

How-To/Tutorial Why I stopped using Spring Data to generate queries from method names

23 Upvotes

I've spent a while writing DAO implementations for a multi-module Spring Boot projects, and I keep coming back to the same rule: if a repository method needs more than one or two conditions, I write the `@`Query`` by hand instead of letting Spring Data derive it from the method name.

Not because it doesn't work, it works fine for example like findBySku. I don't like what happens after that. Rename a field on the entity and a derived query either breaks at startup with a PropertyReferenceException, or, depending on how it's written, doesn't break at all and just quietly stops matching what you think it matches. The compiler never tells you either way.

And once you're past two conditions, the method name turns into a wall of camelCase encoding your whole WHERE clause. I'd rather read four lines of JPQL/SQL than decode findByStatusAndNameContainingIgnoreCaseAndCreatedAtAfterOrderByPriceDesc.

The other piece I went back and forth on is SearchableDaoImpl<Repo extends CrudRepository<Entity, IdType> & JpaSpecificationExecutor<Entity>> - using an intersection type so the generic repository bound picks up both CRUD and Specification support without collapsing them into one bloated interface. Small thing, but it's the kind of generics trick that makes a shared DAO base class actually work across a dozen entities instead of copy-pasted boilerplate everywhere.

Full writeup with the actual generic hierarchy and code: (link in comments)

Curious if anyone here still prefers derived queries for anything beyond trivial lookups, I genuinely want the counterargument.


r/SpringBoot • • Jul 16 '26

Question Spring Boot Auditing: Hibernate Envers vs. Custom Logging vs. Spring Data JPA? What's your production choice?

23 Upvotes

Hey everyone,

I'm currently building a school management system in Spring Boot where history tracking is a strict business requirement. We need to audit critical changes made by Admins, Secretaries, and Teachers (e.g., changes to student details, payment amounts, program setups, etc.).

I’m weighing three different approaches for the audit trail and wanted to hear from those of you who have run these in production. 

Option 1: Hibernate Envers
Slap `@Audited` on core entities, set up a custom `RevisionListener` to pull the logged-in user from Spring Security context, and let Envers automatically manage the `_aud` tables.

Option 2: Spring Data JPA Auditing
Utilize `@CreatedBy`, `@LastModifiedBy`, `@CreatedDate`, and `@LastModifiedDate` fields mapped on a `@MappedSuperclass`.

Option 3: Manual Custom Logging (or AOP)
Create a generic `AuditLog` entity, write a helper service, and manually trigger `auditService.log(actionType, originalState, newState)` inside the business logic (or use an AOP aspect). This may cause the database to bloating later tho

For those of you managing medium-to-large Spring Boot codebases:
 Did you regret adopting Hibernate Envers? How did you handle schema migrations (Flyway/Liquibase) with the auto-generated `_aud` tables?
If you went the custom route, did you use JSON columns to record state changes, or did you write distinct history tables?

Looking forward to hearing your design patterns and trade-offs


r/SpringBoot • • Jul 03 '26

Question How do you handle database operations in enterprise projects?

23 Upvotes

I'm a .NET developer, and in our organization's project, which is quite data-intensive, we use stored procedures for all database operations. The application simply calls the stored procedures with the required input parameters and consumes the output they return.

Is this a common approach in spring boot applications as well?(Like calling stored procedures and all) If yes, how are they called in your organization/project?


r/SpringBoot • • May 18 '26

Question [Maven/IntelliJ] Spring-JDBC dependency remains red (Artifact not found) while spring-context works

Post image
23 Upvotes

Hello, I am new to the world of spring and java backend in general. I am starting with "Spring Start Here" by Laurentiu Spilca.

I am having a strange issue with my pom.xml in IntelliJ. While my spring-context dependency seems to be accepted, the spring-jdbc dependency remains red no matter what I do.

The Problem:
When I use version 7.0.7 (which IntelliJ suggested), spring-context turns white, but spring-jdbc stays red with the error "Artifact not found."

What I have tried:

  1. Changed versions to 5.2.6.RELEASE and 5.3.9 — both remained red for both dependencies.

  2. Clicked "Reload All Maven Projects" multiple times..

  3. Checked Proxy settings (No Proxy). (Honestly, gemini told me to do this, I have no idea why I need to do this.)

My Environment:

  • IDE: IntelliJ Community Edition

  • Java: 17

  • My pom.xml code is as shown in the image.

how to rectify this error? why is this error happening?


r/SpringBoot • • Mar 23 '26

News We built an AI agent on Spring Boot 4 + Spring AI + Spring Modulith. Almost 200 stars in 3 days

Thumbnail
github.com
23 Upvotes

We released JavaClaw three days ago (we renamed it to ClawRunr but literally nobody is using the new name).

The idea started simple: AI agents need to schedule things, retry things, run things in the background. That's what we've been doing for years at JobRunr. So we thought, why not build a full agent runtime around it? Spring AI is mature enough now, Spring Boot 4 is out, seemed like a good time to try.

Did not expect 200 stars, 32 forks, a GraalVM port, a plug-in, and our first external PR in three days. Pretty wild.

The Spring stuff

We lean hard on ChatClient from Spring AI. One agent instance handles all conversations regardless of channel. Switching LLM providers (OpenAI, Anthropic, Ollama) is just picking a different option during onboarding. No code changes.

For channels we went with Spring Events. Any channel, Telegram, the built-in chat UI, fires a ChannelMessageReceivedEvent, agent picks it up, processes it, sends the response back the same way. Want to add Discord? Implement one interface, done.

Spring Modulith was a good call here. Keeps the modules honest:

JavaClaw/
├── base/       # Core: agent, tasks, tools, channels, config
├── app/        # Spring Boot entry, onboarding UI, chat channel
└── plugins/
    └── telegram/   # Telegram long-poll channel plugin

Say you tell it "summarize my emails every morning." It spins up a recurring job in JobRunr and drops a Markdown file with the task description. Scheduling, retries, monitoring, all through the JobRunr dashboard at :8081.

Getting started is quick, just clone and run:

git clone https://github.com/jobrunr/javaclaw.git
cd javaclaw
./gradlew :app:bootRun
# open http://localhost:8080/onboarding

Onboarding takes about 2 minutes and you're chatting with your agent.

The community bit

We built this as a JobRunr demo originally but the response has been way bigger than we expected. So we're going all in on making it a real open-source community project.

JavaClaw is now an open invitation to the Java community, let's build the future of Java-based AI agents together.

Tons of stuff to do still. More channels, better memory, smarter planning.If you want to hack on any of that, we're actively looking for contributors!

Or if you want to give feedback, that would be really helpful for us as well!

GitHub: https://github.com/jobrunr/javaclaw
Website: https://clawrunr.io
Demo video: https://youtu.be/_n9PcR9SceQ


r/SpringBoot • • Mar 08 '26

Discussion Should i create two seperate controller for internal endpoints and public endpoints?

23 Upvotes

Hey!!

I am creating a java spring boot microservice project. The endpoints are classified into two category :

  1. called by the external user via api-gateway.

  2. service-to-service called apis.

My question is, from the security point of view should i create two separate controller : one for external apis and another for internal service-to-service apis and block the internal endpoints called from api-gateway? What usually is the industry standard?

Appreciate if someone can share their knowledge on this.

Thank you!!


r/SpringBoot • • Feb 10 '26

News Spring CRUD Generator v1.1.0 released — field validation, Redis caching fixes, Spring Boot 3/4 compatibility

23 Upvotes

Hi everyone! I’ve just released Spring CRUD Generator v1.1.0 — a YAML-driven generator that bootstraps a Spring Boot CRUD backend (entities, DTOs/transfer objects, mappers, services/business services, controllers, optional OpenAPI/Swagger resources, migration scripts etc.).

Repo: https://github.com/mzivkovicdev/spring-crud-generator
Release notes: https://github.com/mzivkovicdev/spring-crud-generator/releases/tag/v1.1.0

Highlights:

  • fields.validation support (incl. regex pattern)

  • Redis caching improvements (better behavior with Hibernate lazy loading)

  • Fixed generated @Cacheable(value=...) values

  • Full compatibility with Spring Boot 3 and Spring Boot 4

  • New OSIV control: spring.jpa.open-in-view (default false) + EntityGraph support when OSIV is off

configuration:
  database: postgresql
  javaVersion: 21
  springBootVersion: 4
  cache:
    enabled: true
    type: REDIS
    expiration: 5
  openApi:
    apiSpec: true
  additionalProperties:
    rest.basePath: /api/v1
    spring.jpa.open-in-view: false
entities:
  - name: UserEntity
    storageName: user_table
    fields:
      - name: id
        type: Long
        id:
          strategy: IDENTITY
      - name: email
        type: String
        validation:
          required: true
          email: true
      - name: password
        type: String
        validation:
          required: true
          pattern: "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$"

Full CRUD spec YAML (all supported features):

https://github.com/mzivkovicdev/spring-crud-generator/blob/master/docs/examples/crud-spec-full.yaml

Feedback is welcome — happy to answer questions or take suggestions.


r/SpringBoot • • Jan 07 '26

Question Spring Boot only or Spring Boot + React? do I need to learn frontend technologies like React?

23 Upvotes

I’m a fresher, Btech 2025 passout, currently learning Spring Boot for backend development. I’m confused about whether I should also learn React/frontend or if focusing only on backend is enough for entry-level Java roles. How much frontend knowledge do companies actually expect from a Java developer (basic HTML/CSS/JS vs full React)? I want to build a strong backend profile. Any advice?


r/SpringBoot • • Dec 10 '25

Question Understanding Spring/Springboot

23 Upvotes

Hey all,

Security guy here. Currently, I am trying to extend my knowledge and try to understand Spring and Springboot as this has pretty massive security implications within my environment. Long story short: we run a bunch of containerized microservices and one of the required components is Spring/Springboot. We support 2 different flavors of Spring/Springboot and they are both grossly out of date (2.6.6 for our J11 code base and 3.3.0 for our J21 code base). Both versions are pretty riddled with vulnerabilities as far as OSS goes (our SCA lights up like a Christmas tree), and while there is an ongoing project to update all our microservices to J21, we are still pretty out of date on the version of Spring/Springboot associated with that version of Java.

I think one of my biggest issues right now is I've read articles and I still don't understand what Spring/Springboot DOES. Most of the documentation I've read is along the lines of "Spring provides a framework for fast development that allows developers to deploy spring applications quickly". In my brain, I think this kind of sounds like a web engine or something but explanations ike that seem, I dunno... circular?

Apologize if this is the wrong place to post this. Recommended videos and reading is appreciated. I've been through the Springboot main pages here and even read some third party pages but it still all seems very confusing. The main goal here is that I want to be able to talk to our developers in an intelligent manner and discuss with them why we neglect such a core component of our platform and try to figure out a reasonable way to deal with the current threat landscape.

Thanks in advance!


r/SpringBoot • • Oct 31 '25

Question application.properties and github

23 Upvotes

hi everyone,

how I can manage sensitive data inside application.properties while i want to push the project to github? what the way used in full-stack spring boot projects.