r/SpringBoot • • 2h ago

News JobRunr 9.1.0 moves its lambda "black magic" to the JDK 25 Class-File API (ASM now optional), adds OOM shutdown and a Jackson 3 sublist fix

6 Upvotes

For years, whenever JobRunr comes up in Spring Boot threads, someone looks at BackgroundJob.enqueue(() -> invoiceService.send(id)) and calls the lambda serialization "black magic."

Fair enough. Turning a Java lambda into a serialized method call in your SQL database meant inspecting the compiled bytecode under the hood using ASM (org.ow2.asm:asm). It worked well, but it meant carrying ASM as a transitive dependency and waiting on ASM updates whenever a new JDK dropped.

With JobRunr 9.1.0, ASM is now optional on Java 25 and higher.

How the Class-File API switch works

The core artifact is a Multi-Release JAR. On JDK 8 through 24, JobDetailsGeneratorFactory still uses ASM so existing apps keep working unchanged. On JDK 25+, the JVM automatically loads META-INF/versions/25/org/jobrunr/jobs/details/JobDetailsGeneratorFactory.class, which switches to JobDetailsClassFileApiGenerator powered by java.lang.classfile.

Same lambda syntax, zero external bytecode libraries. If your Spring Boot 3 or Spring Boot 4 app runs on JDK 25+, you can exclude ASM straight from the starter:

<dependency>
    <groupId>org.jobrunr</groupId>
    <artifactId>jobrunr-spring-boot-4-starter</artifactId>
    <version>9.1.0</version>
    <exclusions>
        <exclusion>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm</artifactId>
        </exclusion>
    </exclusions>
</dependency>

Other changes in 9.1.0 relevant to Spring Boot apps

  • Jackson 3 immutable sublist support. If you are on Spring Boot 4 with Jackson 3, Jackson3JsonMapper now allows List.of(...).subList(...) (ImmutableCollections$SubList) out of the box, plus a Duration deserialization fix.
  • BackgroundJobServer stops immediately on java.lang.Error. Previously JobHandler and ServerZooKeeper caught Exception only, so an OutOfMemoryError during polling or heartbeats could kill the scheduled task without calling backgroundJobServer.stop(). Both now catch Throwable, log a FATAL error, and shut the server down cleanly so Kubernetes or your orchestrator can replace the pod.
  • Immediate enqueue when scheduleAt is in the past. Calling schedule(Instant.now().minusSeconds(30), ...) or scheduleIn(Duration.ZERO) now transitions SCHEDULED to ENQUEUED right on creation instead of waiting for the next poll cycle.
  • SQL and dashboard fixes. The parsed SQL statement cache is now keyed by statement text instead of String.hashCode(), Exceptions.retryOnException no longer spins at 100% CPU when interrupted during MySQL or MariaDB shutdown, SQL heartbeats now store actual processCpuLoad instead of systemCpuLoad, dashboard 500s stop leaking stack traces in the HTTP body, and jobrunr-bom is no longer published (eliminating false-positive vulnerability scanner alerts from optional compile-only dependencies).

On the Pro side, 9.1.0 also makes SlidingTimeWindowRateLimiter account for job processingDuration (with a new SQL index migration on startup) and exposes JobContext#getAwaitedJob() and getAwaitedJobResult() so chained jobs no longer need StorageProvider injected.

Links:

👉 Release Blogpost: https://www.jobrunr.io/en/blog/jobrunr-v9.1.0/

👉 GitHub Repo: https://github.com/jobrunr/jobrunr/releases/tag/v9.1.0

Happy to answer questions in the thread.


r/SpringBoot • • 9h ago

How-To/Tutorial How to Connect React with Spring Boot? A Practical Integration Guide

2 Upvotes

For example You've built a React frontend and a Spring Boot backend.

But how do you make them communicate properly?

This is something many beginners face when building their first full-stack application.

Here is a simple breakdown of how the integration works.

1. Understand the architecture

React Frontend
      |
      | HTTP Request
      v
Spring Boot REST API
      |
      v
Service Layer
      |
      v
MySQL Database

React handles the user interface, while Spring Boot processes requests and manages backend operations.

2. Configure CORS

If React runs on localhost:5173 and Spring Boot runs on localhost:8080, configure CORS to allow requests from your frontend.

3. Connect React using Axios

Install Axios:

npm install axios

Create an Axios instance:

import axios from "axios";

const client = axios.create({
  baseURL: "http://localhost:8080"
});

export default client;

4. Fetch data from Spring Boot:

const response = await client.get("/api/students");
console.log(response.data);

5. Send data to the backend:

await client.post("/api/students", {
  name: "Rahul",
  city: "Hyderabad"
});

6. Don't forget these important things

  • Use environment variables for API URLs.
  • Handle JWT authentication for protected APIs.
  • Manage API errors properly.
  • Configure production deployment.

Some common errors developers face:

  • CORS errors
  • 404 API errors
  • 401 Unauthorized
  • Network errors
  • Empty API responses

I have put together a complete step-by-step guide covering these concepts, including code examples and production configuration.

Full guide: https://www.codebegun.com/blog/react-spring-boot-connect-frontend-backend

For developers working with React and Spring Boot:

What do you usually find more challenging during integration — CORS configuration, API communication, JWT authentication, or deployment?

I

Would love to hear your experience!


r/SpringBoot • • 1d ago

News Introducing Spring AI Agent 🌱

66 Upvotes

On behalf of the Spring AI team, I'm excited to introduce Spring AI Agent, a new project that brings type-safe agentic foundations to Java and Kotlin, built in collaboration with JetBrains on top of Spring AI 2.1.

👉 https://spring.io/blog/2026/12/03/spring-ai-agent-announcement

🤖 Agent<I, O> abstraction based on your own records or data classes
🧩 Graph-based composition and orchestration
💾 Durable execution with session memory and checkpoints
🔗 A2A for interoperability with remote agents
🧵 Virtual thread-friendly streaming

Version 0.8.0 is available now, ahead of the merge into Spring AI 3.0, and we'd love your feedback!


r/SpringBoot • • 1d ago

Question Spring Security, looking for help (JWT and Logout)

8 Upvotes

Hello everyone,

I am trying to finish a small SPA for a couple of friends. It's meant to replace a small, ancient desktop app. Less than 30 users. Yeah, I know, laughably tiny. But an SPA makes sense, because of the requirements. I'm using React, Java with Spring and MySql. Most core features are implemted, tested and work. The only thing missing - besides deployment, obviously - is authentication. This is where I am stuck. I am trying to use Spring Security, but:

- Allmost all tutorials online seem outdated (I keep seeing redacted warnings)

- I need a simple authenication method. Everyone is recommending JWT. Unfortunately, no one explains how to code a log out. I understand that JWTs expire, and the best way to have a logout is by removing the token from the front end state. But what is the best way to deal with JWT in the BE? Blacklist? Refresh? Is JWT even the best strategy here? Why cant I find Infos about session cookies? Is my google fu really that bad? (apparently, yes)

All I need is good resource. A book would be great, a blog video or repo would be fine too. I read a book from O'Reily and unfortunately, it answered none of my questions. Did a Udemy course, and guess what, not a single word about about log out strategies. I am about ready to give up and redo the entire BE in node.

Thanks in advance for any help.


r/SpringBoot • • 1d ago

How-To/Tutorial I built a free interactive course for the Spring Professional certification (feedback welcome)

22 Upvotes

Hi all. I've been a developer for almost 30 years, and I put together a free course to prepare for the Spring Professional certification.

What's in it:

- 23 short lessons following the 6 exam sections

- Isometric diagrams and real Spring Boot code

- A quiz and a printable cheat sheet at the end of each lesson

- Common exam traps

- A full mock exam

No sign-up needed, and it's available in English and Spanish.

Full disclosure: I made it, so I'm biased. I'd really appreciate honest feedback on what's unclear, what's missing, or what's wrong.

https://spring.2learn.dev/en/?utm_source=reddit&utm_medium=r_springboot


r/SpringBoot • • 1d ago

Question Is Quarkus going to take over Spring boot

0 Upvotes

I've noticed a lot of companies are moving to Quarkus for its obvious advantages nowadays. In another 5 years will spring boot lose its market share to Spring boot?


r/SpringBoot • • 2d ago

News Spring AI was using Redis cache for sharing the responses among different users (CVE-2026-59417)

6 Upvotes

If you are using Spring AI's semantic cache (Redis) check this one.

You can reuse the earlier cached answer in the later similar question (the private data will be there as well).

Entries made by the advisor are kept forever in Redis unless you delete them.

The CVSS rating is 9.1, highest level under 10.

Fixed versions and the advisory details are in the write-up: https://hol.org/blog/cve-2026-59417-spring-ai-redis-semantic-cache


r/SpringBoot • • 2d ago

Discussion ApplicationReadyEvent starts consuming before the server is actually ready

7 Upvotes

I ran into a subtle timing issue recently: a @EventListener(ApplicationReadyEvent.class) bean that starts consuming from a message queue. The event fires, the consumer begins pulling messages, but the embedded Tomcat/Jetty server hasn't finished binding its ports yet. If a producer sends a reply or a dependent service calls back immediately, the connection is refused or the message lands in a dead-letter queue because the app isn't actually serving traffic yet.

The docs say ApplicationReadyEvent means the application context is fully refreshed and ready to use, but in practice "ready" doesn't always equal "listening on the connector port." I worked around it by injecting a WebServer and checking isStarted() before starting the consumer, but that feels brittle across different embedded servers.

public class QueueConsumer {

    private final WebServer webServer;

    u/EventListener(ApplicationReadyEvent.class)
    public void start() {
        if (!webServer.isStarted()) {
            // wait or defer — but how long? polling feels wrong
        }
        // start consuming
    }
}

Questions:

  1. Is there a cleaner Spring-native hook that guarantees the web server is actually accepting connections before I start consuming?
  2. Have others seen this in production, or is it mostly a local-dev timing issue?
  3. Should the consumer lifecycle be tied to the WebServer instead of the application context?

I haven't tested this across Tomcat, Jetty, and Undertow yet, so I can't confirm whether the behavior differs by server. If someone has a reproducible example, I'd like to see it.


r/SpringBoot • • 3d ago

Discussion Client-side DPoP with Spring Security, adding the proofs yourself and working around a WebFlux token type bug

2 Upvotes

I maintain authzen-enforcer, an open source Java SDK that enforces authorization decisions of a Policy Decision Point (PDP) through the OpenID AuthZEN API, with a Spring Boot starter. The application calls the PDP with its own token, obtained through the client credentials grant of Spring Security's OAuth 2.0 client. For the latest release I wanted that token to be DPoP-bound (RFC 9449), so that a stolen token alone cannot ask the PDP anything. Spring Security covers DPoP on the resource server side; on the client side the application does part of the work, so here is what I added.

What Spring Security offers (checked with 7.2.0, the version in Spring Boot 4.2.0)

  • DPoP on the resource server side: DPoPAuthenticationProvider, proof decoding and validation, and a replay validator.
  • The servlet token response converter reads token_type: DPoP.
  • Creating proofs is not part of spring-security-oauth2-client (there is no DPoP class in it as of 7.2.0), so the application adds them to its token requests itself. Without a proof, the authorization server issues a plain bearer token.

What I had to add

  1. A proof on every token request. On the servlet side, this is a ClientHttpRequestInterceptor on the RestClient of the token response client. The proof takes htm and htu from the outgoing request, has no ath because there is no token yet, and is new for every request:
  2. If the authorization server answers 400 with error="use_dpop_nonce", the request is repeated once with the nonce of its DPoP-Nonce header. On WebFlux, the same thing is an ExchangeFilterFunction on the WebClient.
  3. Reading the token type on WebFlux. The reactive OAuth2AccessTokenResponseBodyExtractor maps only Bearer, so a token_type: DPoP response fails with "tokenType cannot be null". The starter reads the token response itself for now. I reported this as spring-security#20189.
  4. No silent downgrade. If the request carried a proof but the response says Bearer, the starter fails the request instead of sending an unbound token in place of a bound one.
  5. Requests to the PDP. Each one carries Authorization: DPoP <token> and a new proof with ath, and retries get a new proof too, since a server is expected to refuse a proof it has already seen.
  6. An application's own OAuth2AccessTokenResponseClient bean would bypass all of this, so with DPoP on the starter refuses to start next to one instead of quietly sending token requests without proofs.

Checking it against a real server

The examples repository runs the Spring MVC and WebFlux applications with DPOP=1 against Keycloak 26.8.2, which is both the authorization server and the PDP there. Keycloak binds the token when the token request carries a proof, with no client setting. Besides the application's own requests, the decision check asks the PDP directly with a token bound to the same key:

DPoP the type of the PEP's token, requested with a proof
200 the PDP answers the token with a proof of its key
401 the PDP refuses the same proof again (a replay)
401 the PDP refuses a proof of another key (a stolen token)
401 the PDP refuses a proof for another endpoint
401 the PDP refuses the token without a proof
401 the PDP refuses the token as a bearer token

The replay refusal comes from Keycloak itself, because its AuthZEN endpoints run inside Keycloak. A PDP or resource server elsewhere has to remember the jti values of the proofs it accepts on its own.

Questions

  • Is anyone doing client-side DPoP with Spring Security in another way, for example with the authorization code flow, where the same idea applies to more requests?
  • Would first-class proof creation in spring-security-oauth2-client be useful to you? The closest open request I found is #18228, which asks for a way to mark a client registration as requiring DPoP.

r/SpringBoot • • 3d ago

Question Are Springboot Udemy courses worth it?

0 Upvotes

Recently I have wanting to learn spingboot, the content I find on YouTube is quite fast paced and not structured so I'm looking for paid structured courses for learning.

Are they worth it?


r/SpringBoot • • 4d ago

News Scaling a Spring Boot outbox to 66k records/sec with strict per-key ordering

Post image
41 Upvotes

I maintain Namastack Outbox, an open-source transactional outbox library for Spring Boot. An order write and the work it schedules share one database transaction. Consumers pick up that work asynchronously, so a committed order can leave behind durable work even if the app restarts.

We tested what happens when producers and consumers share PostgreSQL under load. With lightweight handlers, each success still had to be recorded in the database. We call that write a completion. In our delete-on-complete setup, direct completion means one synchronous transaction per delete. In the v2.0.0 tests, grouping those deletes increased processed throughput while reducing the median sampled database-wide commit rate from about 48,900/s to 34,000/s.

The constraint is easiest to see with two orders. A1 and A2 belong to order A and must run in sequence. B1 belongs to order B and can run alongside A1. Once the A1 and B1 handlers finish, their deletes can go to the same JDBC writer and share a transaction. A waits for its own completion acknowledgement before it starts A2. That acknowledgement comes after PostgreSQL commits the delete. If the batch fails, the writer retries each write in its own transaction. Any write that still fails ends the affected key’s current processing pass.

The four consumers shared the database and split the work through partition ownership. Independent keys could run on different instances, and each runtime batched completions from the keys it was processing. A crash after a handler runs and before its completion commits can still lead to a retry. The order and its two outbox records still shared the original synchronous producer transaction.

ConfigurationProcessed records/sPending records at the end
v1.11.1, direct completion7,28339,482,608
v2.0.0, direct completion26,58416,127,892
v2.0.0, completion batching66,7556,833

A record counted as processed when its completion delete committed. Batching brought v2.0.0 to 2.51× its direct-completion rate. At 66,763 outbox inserts/s, the batched run nearly kept up with the live producer, while both direct runs built up millions of pending rows. The producer committed 33,381 business orders/s in that run. The broader release comparison also includes bulk reads, deferred deserialization, and revised polling queries and indexes.

We ran each configuration once for 15 minutes on an Apple M5 Max with PostgreSQL 18.7, synchronous commits, four consumers, two lightweight handlers, no external broker, and strict per-key ordering. Benchmark, Grafana replay, and reproduction download

The Spring Boot wiring is to add the JDBC starter, call outbox.schedule(event, "order-" + orderId) inside the business service’s @Transactional method, and register an @OutboxHandler. Completion batching is opt-in. Java and Kotlin quickstart


r/SpringBoot • • 4d ago

How-To/Tutorial Kafka-Backed GraphQL Subscriptions with Spring and Atleon

Thumbnail
reddit.com
2 Upvotes

r/SpringBoot • • 5d ago

Discussion I built a Spring AI RAG starter: Ask questions about your PDFs, search works with no API key

9 Upvotes

I put together a small open-source starter for retrieval-augmented generation in Java and wanted to share it.

What it does: upload PDFs, text or Markdown, then ask questions in plain English from a built-in web page or a REST API.

- Spring Boot 4.1, Spring AI 2.0, Postgres with pgvector

- Embeddings run inside the app (all-MiniLM-L6-v2 via ONNX), so search needs no outside AI service or key

- Optional: set AI_CHAT=openai and your OPENAI_API_KEY for written answers that cite sources by number

- Every endpoint is protected by a generated access key

- MIT licensed; runs locally with Docker, or one click on Railway

Code: https://github.com/Morpheous7/Spring-AI-RAG-Starter

Railway template: https://railway.com/deploy/spring-ai-rag-starter

I tested the OpenAI mode end to end today. Happy to hear feedback, especially on chunking and how you'd structure the ask endpoint.


r/SpringBoot • • 5d ago

Discussion I built SemVal4j: What if Java's @Valid could validate meaning, not just syntax?

2 Upvotes

Hey Java developers!

I've been experimenting with an idea: why should Java validation stop at syntax and structure?

"@NotNull", "@Email" and "@Size" are great, but what if we want to validate whether:

  • A product review is consistent with its rating.
  • A description actually matches its category.
  • A customer request contains contradictory information.

That's why I built SemVal4j, an open-source Java library that extends Jakarta Bean Validation with probabilistic semantic rules powered by Jev Decision Models.

u/SemanticValid({ u/SemanticRule( id = "rating-consistency", question = "Is the review consistent with its rating?", property = "comment", passAt = 0.85, failBelow = 0.20 ) }) public record ProductReview( u/Min(1) u/Max(5) int rating, u/NotBlank String comment ) {}

You can keep using standard "@Valid".

Key features:

  • Native Jakarta Bean Validation integration.
  • Spring Boot starter.
  • One provider call per validated object.
  • Explicit VALID / UNCERTAIN / INVALID outcomes.
  • LangChain4j integration.
  • Deterministic offline testing.
  • Apache 2.0 license.

The goal isn't to replace deterministic validation, but to complement it when traditional constraints aren't enough.

I'm particularly interested in your thoughts on latency, reliability, and where semantic validation belongs in a Java architecture.

Would you use this in a real-world application?

GitHub: https://github.com/mohamedikbel/semval4j

Maven Central: https://central.sonatype.com/artifact/io.github.mohamedikbel/semval4j-spring-boot-starter

Feedback and contributions are welcome!


r/SpringBoot • • 10d ago

News Book 'Modern frontends with htmx' updated for htmx 4

37 Upvotes

My book 'Modern frontends with htmx' has been updated to Spring Boot 4 and htmx 4!

To celebrate, it is now 40% off via https://leanpub.com/modern-frontends-with-htmx/c/HTMX4

All examples have been updated to Spring Boot 4.1.3 and htmx 4.

See https://www.wimdeblauwe.com/books/modern-frontends-with-htmx/ for more information on the book.


r/SpringBoot • • 11d ago

News I built a Spring Boot 4 starter for durable, PostgreSQL-backed background jobs (Apache 2.0, feedback welcome)

11 Upvotes

I needed background jobs in a Spring Boot app that survive restarts, retry with backoff and can wait for things like a payment webhook, without adding a broker or a separate service. I didn't find a library that fit, so I built bikesched. It's an early 0.x release and I'd like feedback from people who run Spring Boot in production.

With the starter and a DataSource, there's nothing to wire: no @Enable…, no builder code.

@Component
class OrderJobs {

  @JobHandler(name = "fulfil-order")
  public void fulfil(Job job, Order order) {
    // runs once; a retried or resumed job gets the stored id back
    String paymentId = job.step("create-payment", String.class,
        step -> payments.create(order).id());

    // the job suspends here without holding a thread until the webhook publishes the event
    Payment payment = job.waitForEvent("await-payment", "payment-received", paymentId,
        Payment.class).receive();

    job.step("ship", () -> shipping.ship(order, payment));
  }

  @JobHandler(name = "purge-expired-sessions", schedule = "0 0 */6 * * *")
  public void purgeExpiredSessions() { … }
}

What the starter does:

  • Finds @JobHandler methods on your beans, including @Transactional proxies, and calls them through the proxy.
  • schedule takes Spring's six-field cron syntax or an ISO-8601 duration, so it can replace @Scheduled and runs once across all instances instead of on every one.
  • Schedules jobs inside your @Transactional method, so the job only exists if your transaction commits (outbox style).
  • Starts polling with the context and on shutdown releases unfinished jobs before the DataSource closes, so another instance takes over.
  • Uses Boot's Jackson ObjectMapper for payloads and records Micrometer metrics when those modules are on the classpath. Every option is a bikesched.* property.

Under the hood:

  • Jobs are rows in plain PostgreSQL tables. Instances claim them with SKIP LOCKED and wake each other with LISTEN/NOTIFY.
  • Durable steps whose results survive retries, compensation for sagas, timeouts, idempotency keys, child jobs and sleeping for days without holding a thread.
  • Crash recovery: jobs of a dead instance are picked up by another one.
  • Java 21+, virtual threads. The core depends only on the PostgreSQL JDBC driver and SLF4J. There's also an optional admin UI and a test module that can skip time.

It's Apache 2.0, with no open-core or paid tier.

What I'd most like to hear: does the @JobHandler model feel natural next to @Scheduled and @Transactional, and what would stop you from using it?

Full disclosure: I'm the author, and it's also an experiment in building a library heavily with AI coding agents.


r/SpringBoot • • 11d ago

Question Gen AI roadmap for Java devs?

23 Upvotes

Hey folks, I’m a Java/Spring Boot backend developer trying to get into GenAI and agentic workflows. I’m still wrapping my head around the basics and have looked at a few options but most online roadmaps feel either too scattered/confusing or jump straight into heavy Python/ML theory

For anyone who has ramped up on this recently from a Java background:

  1. What are the best up-to-date resources for learning the fundamentals and current Java AI patterns?
  2. What does a clean, practical roadmap look like from basic concepts to building real backend AI features without getting lost in noise?
    Would really appreciate any pointers on what actually worked for you.

r/SpringBoot • • 11d ago

Discussion We built a 15-app desktop PIM on Spring Boot 4 and JavaFX, and the apps are plain jars loaded before Spring scans

12 Upvotes

We're the team behind PIM, an open-source (AGPL) personal information manager: notes, diary, calendar, tasks, mail, contacts, RSS, finance, social posts and more, with a local AI assistant. It started years ago on Enterprise JavaBeans; we moved it to Spring because it fit the job much better. Today it's Spring Boot 4.1 on Java 25, with a JavaFX 25 desktop. A few things that may be interesting here:

  • Apps as jars. Every app is a plain jar (a "pimi"). A small loader puts the active workspace's jars on the class path before Spring scans, so an app is just @Configuration and beans. Each jar has to match a SHA-256 you trust, or come from a catalog signed with a P-256 key, or it isn't loaded.
  • Migrations per app. Each app brings its own Flyway migrations with its own history table, and they run before JPA starts. An update that changes or drops a step an app already shipped is refused; new steps run at the next start.
  • One engine, two editions. The same core runs the desktop on embedded H2 (PostgreSQL mode) and the multi-user server on PostgreSQL with Spring Security and WebSocket. The apps talk to the UI only over an event bus, so they don't know which edition they're in.
  • Shipping a Spring Boot desktop app. The installers carry a trimmed Java runtime with JavaFX inside, so users install nothing but the app (and Ollama, which PIM sets up for them).

It's pre-1.0, and Spring folks' opinions on the plugin loading are very welcome, especially if there's a cleaner way to do it.

https://knoden.com/get-pim/?utm_source=reddit-springboot&utm_campaign=launch

Code: https://gitlab.com/knoden (start with pim-core and pim-desktop)


r/SpringBoot • • 12d ago

Question AI-Driven Spring Boot Technical Interview – Cursor & Claude Tips?

20 Upvotes

I have a 60-minute final technical interview focused on Java and Spring Boot. The company allows AI-assisted development using Cursor and Claude. They’ll provide an existing codebase and ask me to implement features, update existing functionality, and fix bugs based on requirements.

For anyone experienced with this approach, how would you use Cursor and Claude effectively? Any recommendations on Cursor Skills, best models for understanding complex codebases vs. fixing small bugs, or practical prompts/workflows beyond generic “add this feature” or “fix this bug” instructions?

Would appreciate any real-world tips!

In short: They would more evaluate me based on how AI usage.


r/SpringBoot • • 12d ago

Question Java fundamentals

16 Upvotes

Hello people ,so i am currently in my 3 nd year of my engineering ,in my clg placemets ,companies prefer java backend guy over other frameworks so i am willing to learn it but i am doing dsa in cpp and plan to move forward with a ai specific domain after learning backend as it will help me to sit for sde roles during placemets ,the thing is i am a cpp guy ,i have done it from 1 st year and have no idea of java at all and i have very less time about 4 months let's say in which i have to master dsa ( in cpp) ,so in order to learn springboot /spring ,what java concepts or fundamentals are enough ? Should i deep dive into java and all learn all topics or are there topics which if i master are enough to understand spring boot ? Plz list of some topics are there


r/SpringBoot • • 14d ago

Discussion Spring Boot's /actuator/metrics vs /actuator/prometheus - a distinction I initially missed

34 Upvotes

While building a monitoring integration for Spring Boot, I started with /actuator/metrics. It seemed like the natural choice: Actuator exposes application metrics as JSON, and that's a straightforward integration path.

Later, I received feedback that /actuator/metrics is primarily a diagnostic endpoint, not intended for continuous production scraping. That led me to add support for /actuator/prometheus while keeping the JSON integration for compatibility.

The interesting part is that both endpoints are useful, just for different purposes:

  • /actuator/metrics lets you inspect individual meters, measurements, and tags.
  • /actuator/prometheus exposes metric series in a format designed for ongoing collection.
  • Both use Micrometer underneath. You don't need to replace Actuator or run a Prometheus server to use the second endpoint.

Looking back, the documentation explains all of this, but the distinction isn't necessarily obvious when you're starting from the usual Actuator examples.

I wrote up what I learned, including configuration examples for both endpoints and some common troubleshooting cases:

https://pvrlabs.xyz/articles/spring-boot-actuator-metrics-vs-prometheus.html


r/SpringBoot • • 14d ago

Question How are you designing JasperReports on Apple Silicon Macs? (I ended up building my own designer)

4 Upvotes

Hey all,

Jaspersoft Studio never got an Apple Silicon build and Rosetta is going away, so I built my own designer to keep working on my reports.

It’s a native Mac app called Report Studio. It edits the same .jrxml files and compiles real .jasper files with the actual JasperReports engine (6.20.3, 6.21.5 or 7.x, so you can match your project’s dependency). Free, Java is bundled.

https://bowa.up.railway.app/report-studio

What is everyone else using? Still Studio through Rosetta, or something else?


r/SpringBoot • • 15d ago

How-To/Tutorial Security

2 Upvotes

Suggest me some good spring security tutorials or learning sources.. i need to implement it to my e commerce backend