惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Register - Security
The Register - Security
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
N
Netflix TechBlog - Medium
量子位
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
H
Help Net Security
D
Docker
D
DataBreaches.Net
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
B
Blog
博客园 - 聂微东
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
The Cloudflare Blog
F
Full Disclosure
GbyAI
GbyAI
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理
Recent Announcements
Recent Announcements
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
博客园 - 叶小钗
小众软件
小众软件
V
Visual Studio Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Recorded Future
Recorded Future
J
Java Code Geeks
雷峰网
雷峰网
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Webroot Blog
Webroot Blog
美团技术团队
N
News | PayPal Newsroom
G
Google Developers Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园_首页
V
Vulnerabilities – Threatpost

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Jakarta EE vs Spring Boot in 2026: I Migrated a Production Backend and the Tradeoffs Aren't What You'd Expect
Juan Torchia · 2026-05-10 · via DEV Community

Jakarta EE vs Spring Boot in 2026: I Migrated a Production Backend and the Tradeoffs Aren't What You'd Expect

Jakarta EE 11 launched with a refreshed pitch around portability, independent runtimes, and alignment with the latest JVM specs. The Java community responded with its usual enthusiasm: "Spring is bloated, we're going back to standards." I read all of it. And then I did something most people don't: I migrated a real module from a digital signature backend I had running in production on Spring Boot 3.x, ported it to Payara 6 with Jakarta EE 11, measured everything I could measure, and documented what went wrong.

My thesis is this: Jakarta EE isn't dead, but the real migration cost is consistently higher than synthetic benchmarks promise. Spring Boot wins on ecosystem; Jakarta EE wins on real portability. Neither wins at everything, and the official documentation for both omits exactly the same problems.


Jakarta EE vs Spring Boot 2026: The Real State of the Ecosystem

Before any numbers, the technical context that actually matters:

  • Spring Boot 3.x runs on Jakarta EE 9+ internally (it dropped javax.* in 3.0). That means the "Spring vs Jakarta EE" narrative is partially false: Spring Boot 3 is already Jakarta EE under the hood, with an abstraction layer on top.
  • Jakarta EE 11 (official Release Notes) brings improved Virtual Threads support (Project Loom), Jakarta Data 1.0 as a new spec, and improvements to CDI 4.1. Real changes, not cosmetic ones.
  • The actual debate isn't "which is better?" — it's "when does it make sense to pay the portability cost?"

You lose that nuance if you only read TechEmpower benchmarks or the comparisons floating around Reddit. I read those too. Then I went to the console.


The Real Migration: Before and After the REST Module

The module I migrated is a digital signature backend: REST endpoints for signing documents, verifying certificates, and managing tokens. Nothing experimental. Code that processes sensitive operations, with real integration tests and logs that matter.

Before: Spring Boot 3.x

<!-- pom.xml before the migration -->
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <!-- Spring Boot 3.x version active at the time of migration -->
    <version>3.3.0</version>
</parent>

<dependencies>
    <!-- Web + REST -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <!-- Base security -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-security</artifactId>
    </dependency>
    <!-- JPA with Hibernate -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <!-- PostgreSQL driver -->
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
    </dependency>
</dependencies>

Enter fullscreen mode Exit fullscreen mode

A typical certificate validation endpoint looked like this:

// Spring Boot: signature verification endpoint
@RestController
@RequestMapping("/api/v1/signature")
public class SignatureController {

    private final SignatureService signatureService;

    // Constructor injection — best practice
    public SignatureController(SignatureService signatureService) {
        this.signatureService = signatureService;
    }

    @PostMapping("/verify")
    public ResponseEntity<VerificationResponse> verify(
            @RequestBody @Valid SignatureRequest request) {
        // The service throws a typed exception if the signature is invalid
        var result = signatureService.verify(request.getDocument(), request.getSignature());
        return ResponseEntity.ok(new VerificationResponse(result));
    }
}

Enter fullscreen mode Exit fullscreen mode

Clean, direct. Zero extra boilerplate if Spring Boot is already configured.

After: Jakarta EE 11 on Payara 6

<!-- pom.xml post-migration to Jakarta EE 11 -->
<dependencies>
    <!-- Full Jakarta EE 11 spec — provided because the server supplies it -->
    <dependency>
        <groupId>jakarta.platform</groupId>
        <artifactId>jakarta.jakartaee-api</artifactId>
        <version>11.0.0</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

<!-- No fat JAR: Payara deploys the WAR -->
<packaging>war</packaging>

Enter fullscreen mode Exit fullscreen mode

The same endpoint in Jakarta EE 11:

// Jakarta EE 11: same endpoint, different ceremony
@Path("/signature")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@ApplicationScoped
public class SignatureResource {

    @Inject
    SignatureService signatureService;

    @POST
    @Path("/verify")
    public Response verify(SignatureRequest request) {
        // No automatic @Valid — you need explicit Bean Validation or a CDI interceptor
        // That's boilerplate Spring Boot handles for you
        if (request == null || request.getDocument() == null) {
            return Response.status(Response.Status.BAD_REQUEST).build();
        }
        var result = signatureService.verify(request.getDocument(), request.getSignature());
        return Response.ok(new VerificationResponse(result)).build();
    }
}

Enter fullscreen mode Exit fullscreen mode

The difference isn't dramatic in this one example, but it scales. With 30 endpoints, the accumulated manual configuration was higher than I expected.


Startup Benchmark on Railway: The Real Numbers

I ran both stacks on Railway (my Spring Boot in production post has the JVM flags baseline) with the same virtual hardware. The numbers are directional and context-dependent, but the trend was consistent across 5 runs:

Stack Startup time (average) Fat JAR / WAR size Initial RSS memory
Spring Boot 3.x ~4.2 seconds ~52 MB ~310 MB
Payara 6 + EE 11 ~18.7 seconds WAR 8 MB + server ~480 MB
WildFly 32 + EE 11 ~22.1 seconds WAR 8 MB + server ~510 MB

The Jakarta EE WAR looks small on paper because the server supplies the specs. But the server itself is enormous. In ephemeral containers or frequent deployments, that hurts.

The JVM flags I used in both cases to align conditions:

# Flags used in both stacks for a fair comparison
-XX:+UseZGC \
-XX:MaxRAMPercentage=75.0 \
-XX:+UseStringDeduplication \
-Djava.security.egd=file:/dev/./urandom \
# Virtual Threads enabled (available in both with JDK 21+)
--enable-preview

Enter fullscreen mode Exit fullscreen mode

With Virtual Threads, Jakarta EE 11 on Payara showed better throughput under sustained load than Spring Boot without WebFlux. But Spring Boot with WebFlux closes that gap almost entirely. Concurrency is no longer an exclusive advantage for either side.


The Three Problems No Official Guide Mentions

This is what I was looking for when I started this migration — and found documented nowhere.

Problem 1: CDI and the lifecycle in Jakarta Data 1.0 has edge cases with repositories without explicit transactions

Jakarta Data 1.0 is new in EE 11 (confirmed in the official spec) and the docs present it as the answer to Spring Data. It is, partly. But if you have repositories executing queries outside an active transactional context, the behavior isn't what the spec suggests in its examples. I spent two hours diagnosing a TransactionRequiredException that only showed up on the certificate verification path, not the signing path. The difference was that one had explicit @Transactional on the service and the other trusted CDI to resolve it. CDI doesn't resolve it on its own.

// ❌ This fails silently on Payara with Jakarta Data 1.0
// if the repository does a read query outside an active TX
@ApplicationScoped
public class CertificateService {

    @Inject
    CertificateRepository repo; // Jakarta Data repository

    public Optional<Certificate> find(String serial) {
        // Without @Transactional here, Payara throws at runtime
        // Spring Data JPA would have created the TX automatically
        return repo.findBySerial(serial);
    }
}

// ✅ Fix: explicit TX or annotation on the repository
@ApplicationScoped
public class CertificateService {

    @Inject
    CertificateRepository repo;

    @Transactional(Transactional.TxType.SUPPORTS) // accepts existing TX or runs without one
    public Optional<Certificate> find(String serial) {
        return repo.findBySerial(serial);
    }
}

Enter fullscreen mode Exit fullscreen mode

Spring Boot per its official documentation creates read transactions automatically on Spring Data repositories. Opinionated? Yes. But in production, that default saves you from subtle bugs.

Problem 2: Third-party library integrations assume Spring in 2026

I wanted to integrate a PKI signing library (I won't name it because it's private, but the pattern is universal): the SDK had native Spring Boot integration via @SpringBootApplication autoconfiguration. For Jakarta EE, the README said "see manual integration docs." Those docs had three steps, two of which referenced APIs deprecated since EE 9. I ended up writing my own CDI adapter.

This isn't a Jakarta EE spec problem. It's an ecosystem problem. 80% of niche Java libraries assume Spring Boot. If you go pure EE, you're going to write adapters. Budget that time accordingly.

Problem 3: Structured logging is a first-class citizen in Spring Boot. It's not in EE 11.

With Spring Boot 3.x, structured JSON logging with trace correlation is three lines in application.properties. With Jakarta EE 11 on Payara, the native logging system (Java Util Logging) has no out-of-the-box support for structured JSON with MDC (Mapped Diagnostic Context). I had to manually add Logback as a dependency, configure a logback.xml inside the WAR, and hope Payara wouldn't interfere with its own log manager.

<!-- logback.xml inside the WAR for Jakarta EE on Payara -->
<configuration>
    <appender name="JSON" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="net.logstash.logback.encoder.LogstashEncoder">
            <!-- Extra fields for trace correlation -->
            <customFields>{"app":"signature-backend","env":"production"}</customFields>
        </encoder>
    </appender>

    <root level="INFO">
        <appender-ref ref="JSON"/>
    </root>
</configuration>

Enter fullscreen mode Exit fullscreen mode

And then I had to add this to payara-web.xml:

<!-- payara-web.xml: delegate logging to the app's system, not the server's -->
<payara-web-app>
    <log-service>
        <module-log-levels>
            <module name="com.sun.enterprise.server" value="WARNING"/>
        </module-log-levels>
    </log-service>
</payara-web-app>

Enter fullscreen mode Exit fullscreen mode

None of this appears in the official migration guide. I found it in a 2023 Stack Overflow thread and a GitHub issue on the Payara repo itself.


Common Mistakes When Comparing These Two Stacks

Mistake 1: Comparing fat JAR vs WAR without counting the server. The Jakarta EE WAR looks lightweight, but the application server running it weighs between 150 MB and 400 MB deployed. The Spring Boot fat JAR includes everything — that's what makes the comparison honest.

Mistake 2: Assuming "standard" means "free portability." Jakarta EE promises portability across certified servers. In practice, Payara and WildFly have behavioral differences in CDI, deployment error handling, and logging extensions. Portability exists, but it's not free — you have to test against each server.

Mistake 3: Ignoring the ecosystem cost. If your stack has more than five third-party dependencies, do the exercise before migrating: check whether each one has native Jakarta EE integration or assumes Spring. This single point can disqualify the migration without running a single benchmark. The dependency supply chain topic in Java has its own complexity — I touched on a different angle of that when comparing npm vs PyPI as attack vectors.

Mistake 4: Believing Virtual Threads settle the performance comparison. With JDK 21+ and Virtual Threads, both stacks can handle massive concurrency without the traditional reactive model. The historical advantage of Netty/WebFlux over blocking servers has shrunk. But that doesn't make Jakarta EE faster at startup or easier to integrate.


FAQ: Jakarta EE vs Spring Boot in 2026

Does it make sense to migrate from Spring Boot to Jakarta EE today?
Depends on why. If you need real portability across application servers — an enterprise scenario where the client mandates WildFly on their own infrastructure — Jakarta EE makes sense. If you're on cloud with your own containers, Spring Boot probably saves you weeks of configuration without giving up anything significant.

Is Jakarta EE 11 better than Spring Boot 3.x for performance?
Under sustained load with Virtual Threads, the difference is small and workload-dependent. On startup time and time-to-first-request, Spring Boot with a fat JAR wins clearly in ephemeral container environments. Synthetic benchmarks don't capture the bootstrapping cost of the application server.

Can I use Spring Boot and Jakarta EE together?
Spring Boot 3.x already uses Jakarta EE internally (everything moved from javax.* to jakarta.* in version 3.0). What you can't easily do is mix Jakarta CDI with Spring's container in the same context. They're two different dependency injection models.

What application server do you recommend for Jakarta EE 11 in production?
Payara 6 has the most up-to-date documentation for EE 11 and the most active GitHub community at the time of writing. WildFly has more history and better general community support. Open Liberty (IBM) is solid for enterprise environments but has less documentation in English. None of them have the Railway experience that Spring Boot has today.

Can Jakarta Data 1.0 replace Spring Data JPA?
Partially. It covers the basic typed repository use cases. But Spring Data has five more years of maturity, integration with the entire Spring ecosystem, and a much larger plugin community. Jakarta Data 1.0 is promising; it's not a drop-in replacement yet.

Why does the official documentation for both omit the same problems?
Because official documentation is written for the happy path. Logging problems in Payara containers, CDI edge cases without an active transaction, and the cost of adapting third-party libraries — these are problems that show up when you put code into real production. No documentation team systematically reproduces that scenario.


What I'd Do Differently Starting Today

I don't regret doing the migration. I learned things I wouldn't have learned just reading specs. But if someone asks me whether it's worth it today, my answer is nuanced:

Stick with Spring Boot 3.x if:

  • You have a team that already knows the ecosystem
  • You use third-party libraries that assume Spring
  • You deploy in your own containers or on Railway
  • Startup time matters (serverless, fast scaling)

Evaluate Jakarta EE 11 if:

  • You have contractual portability requirements across certified servers
  • You're in an enterprise environment where WildFly or Payara already run on the client's infrastructure
  • You want cleaner architectural separation between application code and the runtime
  • You have time to absorb the manual configuration curve

What I wouldn't do is make the decision based on synthetic benchmarks. The numbers that matter are yours — with your hardware, with your dependencies. The ones I measured are a starting point, not a conclusion.

I resisted TypeScript for years thinking types were bureaucracy. A null pointer bug at 2am convinced me in 20 minutes. Jakarta EE gave me something similar: the portability is real, but so is the adaptation cost. Both things can be true at the same time.

The path to becoming a serious Java practitioner doesn't run through picking the right stack. It runs through deeply understanding both, knowing when to use each one, and not lying to yourself about the tradeoffs. That's what this post is my contribution toward.


If you're interested in the security side of digital identity and signing systems, the post on Themis vs Web Crypto API covers similar tradeoffs but in TypeScript. And if you want to see how my JVM flags architecture looked before this migration, it's documented in Spring Boot in production: what the official docs leave out.


Sources:


This article was originally published on juanchi.dev