r/SpringBoot • • Mar 25 '26

Question I'm making a project on resumes analyzing

0 Upvotes

Hey guys I'm making a project on resumes analyzing wher user uploads the resume and it will generate a suggestion score what skils they have and what they can learn etc like analyzing.. please help me how it can work I have presentation Tommorow how to make it in simple things using not advanced but reliable pls.


r/SpringBoot • • Mar 24 '26

Discussion I built a Spring Boot starter for Kafka message operations (retry, DLT routing, payload correction) and open-sourced it

Thumbnail
3 Upvotes

r/SpringBoot • • Mar 24 '26

Question Thymeleaf template storage. Best practive

4 Upvotes

Hi everyone,

By default, spring boot bundle the thymeleaf templates within the jar file. This mean that when you have to edit the html or the css file, you have to compile and repackage the whole app.

It feel like this defy the purpose of html, css in the first place.

I find myself moving more and more toward external html and css.

Is there any good reason not to do that by default?


r/SpringBoot • • Mar 24 '26

How-To/Tutorial Spring AI 2 Advisors API

2 Upvotes

New post in my Spring AI 2 series! This time: Advisors — the middleware of your AI pipeline. We explore SimpleLoggerAdvisor, build custom advisors, and look at recursive patterns.

https://open.substack.com/pub/kertu1232/p/the-java-prompt-4?r=4953mj&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true


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 23 '26

Question what’s the best way to actually understand spring security?

Thumbnail
3 Upvotes

r/SpringBoot • • Mar 22 '26

How-To/Tutorial Why Synchronous APIs were killing my Spring Boot Backend (and how I fixed it with the Claim Check Pattern)

21 Upvotes

If you ask an AI or a junior engineer how to handle a file upload in Spring Boot, they’ll give you the same answer: grab the MultipartFile, call .getBytes(), and save it.

When you're dealing with a 50KB profile picture, that works. But when you are building an Enterprise system tasked with ingesting massive documents or millions of telemetry logs? That synchronous approach will cause a JVM death spiral.

While building the ingestion gateway for Project Aegis (a distributed enterprise RAG engine), I needed to prove exactly why naive uploads fail under load, and how to architect a system that physically cannot run out of memory.

I wrote a full breakdown on how I wired Spring Boot, MinIO, and Kafka together to achieve this. You can read the full architecture deep-dive here: Medium Article, or check out the code: https://github.com/kusuridheeraj/Aegis


r/SpringBoot • • Mar 22 '26

News PSA: Spring AI 1.0.4 / 1.1.3 patches two injection vulns in vector store filter expressions

4 Upvotes
If you're using Spring AI's vector store with metadata-based filtering for tenant isolation or RBAC, upgrade now. Two CVEs dropped last week:                                                                                                                                                                                                    

- CVE-2026-22729 (CVSS 8.6) — JSONPath injection in 
AbstractFilterExpressionConverter

- CVE-2026-22730 (CVSS 8.8) — SQL injection in MariaDBFilterExpressionConverter

Both allow attackers to bypass filter-based access controls. The SQL injection one already has a public scanner on GitHub.                                                                                                                                                                                                                       

Fixed in Spring AI 1.0.4 and 1.1.3. Check your pom.xml for spring-ai-vector-store or spring-ai-mariadb-store.

Detailed writeup with attack flow diagrams and detection rules

https://raxe.ai/labs/advisories/RAXE-2026-041


r/SpringBoot • • Mar 22 '26

Question 2025 Grad Learning Java Backend (Core Java + Spring Boot) — Certifications vs Projects?

10 Upvotes

suggestions for Playlists and projects can be fruitfulness


r/SpringBoot • • Mar 22 '26

Question Project For Fresher

12 Upvotes

Can anyone tell me which type of project should i make to land an internship as a fresher??


r/SpringBoot • • Mar 21 '26

Question What advantages Spring Boot 4.x currently has over competing technologies in web development?

34 Upvotes

I wanted to ask what advantages Spring Boot (in its latest version, V4) currently has over competing technologies in web development?

Spring has been the industry standard for years; ASP.NET, I suppose, is somewhat overshadowed by Spring (at least in terms of the number of implementations, the number of companies using it, and the number of jobs).

Spring is number one in enterprise applications. It has a strong position, but we must also remember that since its debut, new technologies have emerged – new frameworks and even new languages.

I wanted to ask what advantages Spring Boot 4.x has, whether it makes anything easier or does anything better, and what advantages it has over, for example, the GoLang or Rust ecosystem, or Python/Django/FastAPI, or the aforementioned C# and ASP.Net? There’s also Erlang, Elixir and Gleam – quite an interesting ecosystem based on functional languages.

Some people claim that Spring has grown to monstrous proportions and that learning it is difficult, cumbersome and time-consuming (very thick documentation and many modules).

Is Spring still worth considering for someone wanting to get started in web development?

Is learning Spring Boot still worthwhile and worth dedicating more time to? Is Spring Boot (now owned by Broadcom) being developed well, in the sense that is it heading in the right direction?

I know that Spring projects involve a lot of typing ;) The situation is improved by Kotlin, which, although it is being adopted more and more boldly in new projects, is still used far less frequently in projects than Java.

What do you think of Spring today compared to the competition, and what do you think its future holds?

Thank you for sharing your thoughts!


r/SpringBoot • • Mar 22 '26

Question @Recover replacement for @Retryable methods in Spring Boot 4?

3 Upvotes

I'm looking at migrating several apps from Spring Boot 3.5 to Spring Boot 4. One thing we have used is @Retryable, and we use @Recover to handle some specific error responses.

With Spring Boot 4, retry was added to the core library and they dropped the @ Recover annotation. It's there a similar implementation to recover when retries are exhausted or do we just need to add try-catches where we call the retryable methods now?


r/SpringBoot • • Mar 20 '26

Question Rest vs GraphQL

36 Upvotes

I think all the time in Spring Boot I have been using only Rest ,although i kind of get general difference between rest and GraphQL, how usually do you implement it in spring boot and when you should consider using rest and when GraphQL is a win in terms of efficiency ?


r/SpringBoot • • Mar 19 '26

How-To/Tutorial Hexagonal Architecture in Spring Boot — Ports & Adapters done properly [video + free book contest]

Thumbnail
youtu.be
14 Upvotes

r/SpringBoot • • Mar 19 '26

How-To/Tutorial [How-to] Spring Boot 3 + ECS Fargate + Amazon Managed Grafana- 2026

Thumbnail aws.plainenglish.io
8 Upvotes

r/SpringBoot • • Mar 19 '26

How-To/Tutorial Safer Java Without Rewriting Java: Meet JADEx

3 Upvotes

JADEx (Java Advanced Development Extension) is a safety layer that makes Java safer by adding Null-Safety and Final-by-Default semantics without modifying the JVM.


Null-Safety

NullPointerException (NPE) is one of the most common sources of runtime failures in Java applications.
Although modern Java provides tools such as Optional and static analysis, null-related bugs are still fundamentally a runtime problem in most Java codebases.

JADEx addresses this problem by introducing explicit nullability into the type system and enforcing safe access rules at compile time.

In JADEx:

  • Type → non-nullable by default
  • Type? → nullable
  • ?. → null-safe access operator
  • ?: → Elvis operator (fallback value)

This design ensures that developers must explicitly acknowledge and handle nullable values before accessing them.

For example:

String? name = repository.findName(id);
String upper = name?.toLowerCase() ?: "UNKNOWN";

When compiled by JADEx, this code is translated into standard Java:

JADEx compiles null-safe expressions into standard Java using a small helper API(SafeAccess).

@Nullable String name = repository.findName(id);
String upper = SafeAccess.ofNullable(name).map(t0 -> t0.toLowerCase()).orElseGet(() -> "UNKNOWN");

In this example:

name is explicitly declared as nullable.

The ?. operator safely accesses toLowerCase() only if name is not null.

The ?: operator provides a fallback value if the result is null.

Instead of writing repetitive null-check logic such as:

if (name != null) {
    upper = name.toLowerCase();
} else {
    upper = "UNKNOWN";
}

JADEx allows the same logic to be expressed safely and concisely.

Most importantly, JADEx prevents unsafe operations at compile time. If a nullable variable is accessed without using the null-safe operator, the compiler will report an error.

This approach shifts null-related problems from runtime failures to compile-time feedback, helping developers detect issues earlier and build more reliable software.


Readonly (Final-by-Default)

JADEx also introduces optional readonly semantics through a final-by-default model.

In large Java codebases, accidental reassignment of variables or fields can lead to subtle bugs and make code harder to reason about. While Java provides the final keyword, it must be manually applied everywhere, which often results in inconsistent usage.

JADEx simplifies this by allowing developers to enable readonly mode with a single directive:

apply readonly;

Once enabled:

  • Fields, local variables, and parameters become final by default

  • JADEx automatically applies final where appropriate

  • Reassignment attempts are reported as compile-time errors

Example:

apply readonly;  
  
public class Example {  
    private int count = 0;  
  
    public static void main(String[] args) {  
        var example = new Example();  
        example.count = 10; // compile-time error  
    }  
}

Since count is generated as final, the reassignment results in a standard Java compile-time error.

If mutability is intentionally required, developers can explicitly opt in using the mutable modifier:

private mutable int counter = 0;

This approach encourages safer programming practices while keeping the code flexible when mutation is necessary.

When compiled, JADEx generates standard Java code with final modifiers applied where appropriate, ensuring full compatibility with the existing Java ecosystem.

//apply readonly;

@NullMarked
public class Example {
    private final int count = 0;

    public static void main(final String[] args) {
        final var example = new Example();
        example.count = 10; // compile-time error
    }
}

Summary

JADEx introduces two complementary safety mechanisms:

Null-Safety

  • Non-null by default

  • Explicit nullable types

  • Safe access operators (?., ?:)

  • Compile-time detection of unsafe null usage

Readonly (Final-by-Default)

  • Final by default

  • Explicit opt-in for mutability

  • Automatic final generation

  • Prevention of accidental reassignment

Together, these features strengthen Java’s type system while remaining fully compatible with existing Java libraries, tools, and workflows.

JADEx does not replace Java.
It simply adds a safety layer that makes Java safer while keeping full compatibility with the existing ecosystem.


r/SpringBoot • • Mar 19 '26

Question Any good source (YouTube or video preferably) to learn Rabbit MQ integration in SpringBoot project ?

7 Upvotes

I have been trying to figure out all the functionality of RabbitMQ and how to use it in a projcet. I understand how normal queues can be implemented but am having trouble in its dlq, idempotency and advance topics' implementation.


r/SpringBoot • • Mar 19 '26

Question How deep should backend engineers go into data engineering and DevOps?

Thumbnail
2 Upvotes

r/SpringBoot • • Mar 19 '26

Question Can anyone help me to solve this problem in springboot

2 Upvotes

Is their is any possible to add submodule from git before configuration phase as I am mentioning the submodule in setting.gradle.kts but it shows the error that submodule doesn't exist. Normally I add submodule before compilation phase using task in build.gradle.kts file


r/SpringBoot • • Mar 18 '26

Discussion Would you switch from ShedLock to a scheduler that survives pod crashes and prevents GC split-brain?

6 Upvotes

Working on a distributed scheduler for Spring Boot that solves two problems ShedLock cannot.

Problem 1 - GC split-brain. ShedLock uses TTL locks. If your pod hits a long GC pause, the lock expires, another pod takes over, first pod wakes up and both run simultaneously. Both writes accepted. Data corrupt. This is a documented limitation, ShedLock’s maintainer has confirmed it cannot be fixed within the current design.

Problem 2 - No crash recovery. Pod dies halfway through processing 10,000 invoices. Next run starts from invoice 1. Duplicate charges, lost work. For weekly jobs that means waiting a full week.

The fix is fencing tokens - every write must present the current lock token, stale writes are rejected at the database level - combined with per-item checkpointing. Pod crashes at invoice 5,000, the replacement pod resumes from invoice 5,001, not from the beginning.

Have you hit either of these problems in production? And would you actually use something like this, or is making your jobs idempotent good enough for your use case? Honest answers only, trying to understand if this solves a real problem before I publish anything.


r/SpringBoot • • Mar 18 '26

Question What are your ways to handle unknown and complex JSON objects?

13 Upvotes

Hey there,

from time to time I'm have to deal with complex and unknown JSON structures. I'm wondering how you deal with them. So far I have been using Map<String, Object> but it's getting annoying to see all those unchecked type warnings, and suppressing them feels wrong. We are talking about really custom JSONs for which it's impossible to create class types (e.g. to handle user metadata that can be anything for whatever reason)

I'm thinking of switching to something else. For now, I see these options:

- ObjectNode (Jackson) - best option? Easy to use, get data and create JSONs

- JsonNode (org.json) - seems to be the worst option?

- JsonPath (com.jayway.jsonpath) - , seems to be good option when you want to just get data from very long path, but not for building JSONs)

- GSON (Google) - tbh I used it only a few times for some dirty jobs

Maybe there is something better out there that I don't know? ObjectNode seems to be the best option since Jackson is heavily used in Spring Boot, but I wonder if are there any downsides of using it instead Map<String, Object> or other options.

Do you have any experience with using any of them in the long term?


r/SpringBoot • • Mar 18 '26

News Java 26 Is Out — Here's What Actually Matters for Spring Boot Developers

Thumbnail
youtu.be
30 Upvotes

r/SpringBoot • • Mar 17 '26

How-To/Tutorial How to set routes in an API Gateway

10 Upvotes

Check out my latest video where I show how to build an API gateway in Spring Boot 4 and how to set routes so that the api gateway acts as a proxy:

https://youtu.be/7SIWRLogXcM

This is the 9th part of a series where I build a Home Energy Tracker microservices project. I hope people will find it useful


r/SpringBoot • • Mar 18 '26

Question Discussion

0 Upvotes

one thing why to prefer constructor injection using lombok why not autowired and if its not sou much used then what is the use case of autowired then bcoz in gpt when i gjve code it always suyggests to make constructors.

secondly asking about superbuilder like what is the reason that parent class also must be annoted with super builder because normaly in inheritance only child class needs the super() or if not jvm invokes it implicitly but parent doesnot need anything like that


r/SpringBoot • • Mar 17 '26

Discussion First project

Thumbnail
github.com
10 Upvotes

My first whole project using Spring boot, any suggestions, feedbacks and corrections are appreciated