---
title: "#spring-boot articles | Hashnode"
description: "Explore 140 articles tagged #spring-boot on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/spring-boot"
---

Tag

# #spring-boot

140 posts · 8 followers

[Sangyoon Lee](https://hashnode.com/@globalmatchhub) · [2d ago](https://hashnode.com/posts/spring-boot-on-a-free-0-1-cpu-how-i-got-cold-start-down-to-24-seconds/6afbbc3ed6e259b25c0b3efb)

### [Spring Boot on a free 0.1 CPU: how I got cold start down to 24 seconds](https://reviewgated.hashnode.dev/spring-boot-on-a-free-0-1-cpu-how-i-got-cold-start-down-to-24-seconds?utm_source=hashnode&utm_medium=feed)

How I run a Spring Boot demo on Render's free 0.1 CPU: light mode, Spring AOT, Java AOT cache, and the shared 750 free hours.

3 min read · [reviewgated.hashnode.dev](https://reviewgated.hashnode.dev/spring-boot-on-a-free-0-1-cpu-how-i-got-cold-start-down-to-24-seconds?utm_source=hashnode&utm_medium=feed)

[SnapDeploy](https://hashnode.com/@SnapDeploy) · [4d ago](https://hashnode.com/posts/spring-boot-512mb-container/6af93c6489165eb2914413f5)

### [Spring Boot in a 512 MB container: JVM flags, a layered image, and honest start-up numbers](https://snapdeploy.hashnode.dev/spring-boot-512mb-container?utm_source=hashnode&utm_medium=feed)

JVM flags for a quarter-CPU container, the Boot settings that cut start-up time, a layered Dockerfile on Java 21, and honest start-up numbers. SnapDeploy is itself a Spring Boot app, so this is tested daily.

7 min read · [snapdeploy.hashnode.dev](https://snapdeploy.hashnode.dev/spring-boot-512mb-container?utm_source=hashnode&utm_medium=feed)

[Carmelo Buelvas Comas](https://hashnode.com/@cbuelvasc) · [5d ago](https://hashnode.com/posts/building-a-production-ready-mcp-server-with-spring-ai/6af785d14c06abd8c2bed2e3)

### [Building a Production-Ready MCP Server with Spring AI](https://cbuelvasc.hashnode.dev/building-a-production-ready-mcp-server-with-spring-ai?utm_source=hashnode&utm_medium=feed)

TL;DR An MCP server is just another driving adapter. If your service follows hexagonal architecture, exposing it to AI agents is a new entry door, not a rewrite. ⭐ Full code: github.com/cbuelvasc/or

8 min read · [cbuelvasc.hashnode.dev](https://cbuelvasc.hashnode.dev/building-a-production-ready-mcp-server-with-spring-ai?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/building-a-production-ready-mcp-server-with-spring-ai/6af785d14c06abd8c2bed2e3)

[Carmelo Buelvas Comas](https://hashnode.com/@cbuelvasc) · [5d ago](https://hashnode.com/posts/securing-mcp-tools-with-oauth-2-1-scopes-per-tool-in-spring-ai/6af790c957e7f6667519af66)

### [Securing MCP Tools with OAuth 2.1: Scopes per Tool in Spring AI](https://cbuelvasc.hashnode.dev/securing-mcp-tools-with-oauth-2-1-scopes-per-tool-in-spring-ai?utm_source=hashnode&utm_medium=feed)

TL;DR An AI agent calling your tools is a client like any other, and it needs a token. With Spring Security 7 your MCP server becomes an OAuth 2.1 Resource Server, and each tool declares the scope it

7 min read · [cbuelvasc.hashnode.dev](https://cbuelvasc.hashnode.dev/securing-mcp-tools-with-oauth-2-1-scopes-per-tool-in-spring-ai?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/securing-mcp-tools-with-oauth-2-1-scopes-per-tool-in-spring-ai/6af790c957e7f6667519af66)

[Gowtham Muthuvel](https://hashnode.com/@GowthamMuthuvel) · [6d ago](https://hashnode.com/posts/spring-boot-redis-cache-aside-stampede/6af6dc6dcc982b315031a222)

### [Redis Cache-Aside in Spring Boot: Measured Latency and Stampede Fixes](https://gowthammuthuvel.hashnode.dev/spring-boot-redis-cache-aside-stampede?utm_source=hashnode&utm_medium=feed)

A cache hit took 2.24 ms vs 53.54 ms, yet 100 concurrent misses made 100 DB reads, even with @Cacheable(sync = true). Single flight and a Redis lock fixed it, measured on real Redis.

32 min read · [gowthammuthuvel.hashnode.dev](https://gowthammuthuvel.hashnode.dev/spring-boot-redis-cache-aside-stampede?utm_source=hashnode&utm_medium=feed)

[BaoKhang](https://hashnode.com/@baokhang) · [Nov 12](https://hashnode.com/posts/faster-java-pod-startups-without-graalvm-appcds-kubernetes-image-volumes/6af516315c88be31c910c9f3)

### [Faster Java Pod Startups Without GraalVM: Why AppCDS Needs Kubernetes Image Volumes](https://baokhang.hashnode.dev/faster-java-pod-startups-without-graalvm-appcds-kubernetes-image-volumes?utm_source=hashnode&utm_medium=feed)

Measuring AppCDS and Kubernetes image volumes on Spring Boot, Jenkins, and SonarQube pod readiness—no GraalVM required.

6 min read · [baokhang.hashnode.dev](https://baokhang.hashnode.dev/faster-java-pod-startups-without-graalvm-appcds-kubernetes-image-volumes?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/faster-java-pod-startups-without-graalvm-appcds-kubernetes-image-volumes/6af516315c88be31c910c9f3)

[Milan Nikic](https://hashnode.com/@nick79) · [Nov 10](https://hashnode.com/posts/cross-site-scripting-xss-in-java-and-react-reflected-and-stored-xss-part-1/6af30aeb5f0f17eb1bf10a48)

### [Cross-Site Scripting (XSS) in Java and React: Reflected and Stored XSS (Part 1)](https://securitydepth.hashnode.dev/cross-site-scripting-xss-in-java-and-react-reflected-and-stored-xss-part-1?utm_source=hashnode&utm_medium=feed)

Prevent reflected and stored XSS in Java and React with practical examples of output encoding, safe rendering, and HTML sanitization.

20 min read · [securitydepth.hashnode.dev](https://securitydepth.hashnode.dev/cross-site-scripting-xss-in-java-and-react-reflected-and-stored-xss-part-1?utm_source=hashnode&utm_medium=feed)

[Gowtham Muthuvel](https://hashnode.com/@GowthamMuthuvel) · [Nov 10](https://hashnode.com/posts/spring-security-jwt-refresh-token-rotation-rbac/6af29fea91696569429d27db)

### [JWT + Role-Based Access in Spring Security: Refresh Tokens Without the Footguns](https://gowthammuthuvel.hashnode.dev/spring-security-jwt-refresh-token-rotation-rbac?utm_source=hashnode&utm_medium=feed)

Rotation with reuse detection, ROLE\_ vs SCOPE\_ mapping, and the permitAll() trap, all tested on Spring Boot 4.1.2. Replacing an old refresh token revoked 2 tokens and killed the session.

20 min read · [gowthammuthuvel.hashnode.dev](https://gowthammuthuvel.hashnode.dev/spring-security-jwt-refresh-token-rotation-rbac?utm_source=hashnode&utm_medium=feed)

[Sahil Maddi](https://hashnode.com/@CollaborativeCoder4U) · [Nov 10](https://hashnode.com/posts/monolith-vs-microservices-a-quick-overview-for-java-developers/6af2842819a44e81e5c58e1e)

### [Monolith vs Microservices: A Quick Overview for Java Developers 🧩](https://collaborativecoder4u.hashnode.dev/monolith-vs-microservices-a-quick-overview-for-java-developers?utm_source=hashnode&utm_medium=feed)

"Should we build microservices?" is one of the most common architecture questions in Java teams today. Microservices power some of the world's largest systems, but a well-structured monolith is still

4 min read · [collaborativecoder4u.hashnode.dev](https://collaborativecoder4u.hashnode.dev/monolith-vs-microservices-a-quick-overview-for-java-developers?utm_source=hashnode&utm_medium=feed)

[Sangyoon Lee](https://hashnode.com/@globalmatchhub) · [Nov 10](https://hashnode.com/posts/reactor-kafka-why-my-send-hung-for-60-seconds-and-the-one-line-fix/6af28628e60f5ef4ea2727bd)

### [Reactor + Kafka: why my send() hung for 60 seconds, and the one-line fix](https://reviewgated.hashnode.dev/reactor-kafka-why-my-send-hung-for-60-seconds-and-the-one-line-fix?utm_source=hashnode&utm_medium=feed)

My Kafka consumer stalled exactly 60 seconds with no error after calling send(). The cause was the Kafka client thread. The fix is publishOn.

2 min read · [reviewgated.hashnode.dev](https://reviewgated.hashnode.dev/reactor-kafka-why-my-send-hung-for-60-seconds-and-the-one-line-fix?utm_source=hashnode&utm_medium=feed)
