r/SpringBoot • • Dec 23 '25

Question Should I shift from Spring Boot to ASP.NET Core?

0 Upvotes

Java lacks many features that C# have that makes programming much better (operator overloading, indexes, extension classes, async/await, passing references to primitives, ...). I believe that in the future Java would simply be used less and less because people like C# more than Java. However, I think it is currently used more than C#. People here who shifted from Spring to ASP.NET Core, did you find a job? do you like the .NET ecosystem more, or less than the Java ecosystem?

Update: Please do not compare Kotlin which is maintained by a very small company and is much less mature to C# which is maintained by a tech giant and exists for many years.


r/SpringBoot • • Jul 07 '25

Question How much time should I take to complete a 20-hour tutorial

1 Upvotes

In how many days should I complete a 20-hour tutorial? What is the maximum amount of time I should take.


r/SpringBoot • • Feb 06 '26

How-To/Tutorial I got tired of Claude Code ignoring my project patterns, so I built a 46-file toolkit to fix it.

0 Upvotes

I love Claude Code, but the "generic" output was killing me—field injection instead of constructor injection, skipping DTOs, and zero consideration for my Flyway migrations. I was spending more time fixing the AI's code than writing my own.

I realized the model isn't bad; it just doesn't know my stack.

I spent some time building a comprehensive config toolkit to make Claude act like a senior dev on my team. It includes:

  • Rules: Enforces Java 17 records, immutability, and strict naming conventions.

  • Slash Commands: /plan for architecture breakdowns and /tdd for proper test-driven flows.

  • Hooks: Real-time guardrails that catch System.out or u/Autowired before they're even written.

  • Skills: Deep context for Kafka, RAG pipelines, and Spring Boot 3.

The output went from generic boilerplate to production-ready code that actually follows my team's standards.

I’ve open-sourced the toolkit (MIT) if you want to fork it for your own stack. It's mostly Markdown-based, so it’s easy to swap out my Java/Spring/React rules for Go, Rust, etc.

Repo:https://github.com/Ashfaqbs/software-dev-ai-claude-toolkit

How are you guys handling custom project standards in Claude? Is anyone else going this heavy on .claude/ configs?


r/SpringBoot • • Feb 21 '25

Question Is It a Good Idea to Build a Free Website for Watching Movies and Series

0 Upvotes

Hey everyone, I’ve been looking for a free website to watch movies and series, but I haven’t found any that meet my needs. I’m thinking about creating my own platform where users can stream movies and series for free.

What do you think about this idea? Do you think it’s a good direction to go in, and what challenges or technical considerations should I be aware of when creating such a platform?

Any feedback or advice would be really helpful!

Thanks!"


r/SpringBoot • • Jul 26 '25

Discussion Why I hate Query by Example and Specifications in Spring Data JPA

2 Upvotes

Beyond the problem of coupling your repository interfaces methods to JPA-specific classes (which defeats the whole purpose of abstraction), Query by Example and Specifications have an even worse issue: They turn your repository into a generic data dumping ground with zero business control
When you allow services to do:

User exampleUser = new User();
exampleUser.setAnyField("anything");
userRepository.findAll(Example.of(exampleUser));

// or
userRepository.findAll(Specification.where(...)
    .and(...).or(...)); // any crazy combination

Your repository stops being a domain-driven interface that expresses actual business operations like:

List<User> findActiveUsersByRole(Role role);
List<User> findUsersEligibleForPromotion();

And becomes just a thin wrapper around "SELECT * WHERE anything = anything."

You lose:

  • Intent - What queries does your domain actually need?

  • Control - Which field combinations make business sense?

  • Performance - Can't optimize for specific access patterns

  • Business rules - No place to enforce domain constraints

Services can now query by any random combination of fields, including ones that aren't indexed, don't make business sense, or violate your intended access patterns.

Both approaches essentially expose your database schema directly to your service layer, making your repository a leaky abstraction instead of a curated business API.

Am I overthinking this, or do others see this as a design smell too?


r/SpringBoot • • Mar 03 '26

News SpringStudio v1.0 is now released.

2 Upvotes

https://springstudio.io is a Spring Boot + React project generator.

It generates a clean Spring Boot + React foundation (layered architecture, JPA, JWT auth, pagination, MUI frontend) with plain, readable code — no custom runtime or hidden framework.

Generation is based on a domain model and supports CRUD + relation management out of the box (including more complex models). The idea is to start from your data model and get a consistent, production-style structure immediately.

A key focus is safe custom code: generated files are structured so you can extend them safely without losing changes when regenerating.

Built to manage live modeling while keeping full control of the project.


r/SpringBoot • • Feb 17 '24

How much does the Spring Framework costs?

0 Upvotes

Hi everyone,

I am currently working on a startup project. In the context of that project I need to build a web app that include at least a landing page and a contact page. When necessary I will also include a blog and a selling page.

I am familiar with java so I believe Spring boot is the most popular way to go for this.

I have read that Spring boot is free to download and use which is great. However I assume that I will be charged something somehow down the line when I am hooked.

Thus my question, how much will it cost in term of licences or support or maintenance?


r/SpringBoot • • Jul 03 '24

Getting Started with Websockets in SpringBoot

Thumbnail
unlogged.io
0 Upvotes

r/SpringBoot • • Jan 18 '25

Discussion How would you defend Spring boot with opponent Asp.Net Core?

0 Upvotes

Hi I’m Backend developer, just wanted to know have you ever heard or used Asp.Net core for your development. Also if you have used Spring boot, what’s your take on Asp.Net Core? IMO: .Net is way faster than Java in-terms of speed, performance, also the .Net community is mature. How do you defend Spring boot (Java) with opponent Asp.Net Core (.Net)?

Edit: I noticed that this post has received some mixed reactions, and I’d like to clarify my intentions. My goal here isn’t to create unnecessary comparisons or offend anyone but rather to genuinely explore the strengths and advancements of Spring Boot over the years.

As someone with experience in ASP.NET Core, I’m interested in understanding what makes Spring Boot stand out in its ecosystem, its community, and its evolution. While some might feel comparisons are unproductive, I believe they can spark valuable insights when discussed respectfully.

If you’ve worked with both ASP.NET Core and Spring Boot, I’d love to hear your thoughts on how they compare in terms of performance, ease of development, and overall utility. Let’s keep the discussion constructive and insightful!


r/SpringBoot • • Mar 22 '24

Java (springboot) jobs in the US job market

0 Upvotes

As the title says, I know the job market in the US is terrible now. And I was still wondering learn something as springboot which is old technology puts us in front of many for job prospects?


r/SpringBoot • • Aug 24 '26

Discussion Is Spring AI valuable skill?

1 Upvotes

How valuable is spring AI and rag implementation in the current job market? Not sure if companies value it since they are not using it


r/SpringBoot • • Aug 23 '24

10 Interview Questions on Java Generics for Developers

Thumbnail
javarevisited.blogspot.com
0 Upvotes

r/SpringBoot • • Jul 02 '25

Question When will Spring's performance be like that of Quarkus?

11 Upvotes

According to multiple benchmarks ASP.NET is orders of magnitudes faster than Spring-WebFlux and especially faster than Spring Web. From what I read, Quarkus is faster than ASP.NET. When will Spring improve the performance like Quarkus and Will it ever be the same as Quarkus??? I know there is Spring AOT and compiling with Graal compiler and running on HotSpot JVM but I'm not sure it brings the performance close to that of Quarkus.

And another thing to wonder: why Java doesn't implement Operator Oveloading and Coroutines, like Kotlin, C# and many other languages that were created after Java, did years ago?

I like Java, but the disadvantages of not having Operator Overloading, which provide a common interface for classes that implement the same operators, is starting to be annoying.


r/SpringBoot • • Aug 23 '26

Question I built a Spring Boot library to validate JSON before deserialization — looking for feedback

4 Upvotes

Hi everyone,

I've been working on a small open-source library for Spring Boot called json-auto-validation:

github.com/ugoevola/json-auto-validation

The idea is fairly simple: validate incoming JSON against a generated JSON Schema before Jackson deserializes it into a Java/Kotlin object.

The motivation was to catch invalid payloads as early as possible, rather than letting them go through the usual deserialization → DTO validation flow.

It works through annotations and generates the JSON Schemas/validation components automatically, with Spring Boot AOT in mind.

I'm not really posting this to promote a polished or commercial product. I'm mainly interested in getting feedback from people who work with Spring Boot APIs:

  • Does this solve a problem you've encountered?

  • Do you see value in validating the raw JSON before deserialization?

  • Is there something I'm missing or approaching the wrong way?

  • Would you actually consider using a library like this in a real project?

The project is still relatively small, and I'm not the most active open-source maintainer, so I'm mostly trying to understand whether this is useful to other developers before investing more time into it.

Any feedback — positive or negative — would be very welcome.


r/SpringBoot • • Jul 23 '25

Question I cannot run my springboot app

Post image
0 Upvotes

I am trying to develop an angular-springboot project in a mono repo using nx dev tool( i am following a YT tutorial ). When i am serving the backend it gives the above error, caused because there is a space in my username in the path , how should i solve this ?


r/SpringBoot • • May 31 '26

How-To/Tutorial Cost-based routing in Spring AI — 10 code review queries, 7 stayed on local Gemma, 3 escalated to Opus, total bill 48% lower with no quality loss

0 Upvotes

Posting a Spring AI architectural pattern I just shipped, because it solves a real problem most production AI teams hit eventually.

Setup: I have a code review service using Claude Opus 4.7. Most requests are trivial ("does this method handle null?", "is this variable named well?"). Opus is overkill for those and the price reflects it — $75 per million output tokens.

Solution: route based on query complexity. Two ChatClient beans — local Gemma 4 e2b via LM Studio for simple queries, Claude Opus for complex ones. A QueryRouter decides per request.

The dispatch is one method:

public RoutedResponse route(String prompt) {

RoutingDecision decision = router.route(prompt);

ChatClient client = (decision.tier() == ModelTier.LOCAL)

? localClient

: cloudClient;

ChatResponse response = client.prompt(prompt).call().chatResponse();

long[] tokens = extractTokens(response, prompt, text);

tracker.record(decision, tokens[0], tokens[1]);

return new RoutedResponse(decision, text);

}

Router rules (intentionally simple — transparent and debuggable):

  1. Prompt longer than 500 chars → cloud

  2. Contains one of {architecture, design, refactor, security, performance, scalability, tradeoff, compare, analyze, best practice} → cloud

  3. Otherwise → local

Spring AI autoconfiguration handles the local client (pointed at LM Studio via Anthropic protocol). An explicit u/Configuration class adds the cloud bean by qualifier. Two ChatClient beans, different names, no conflict.

Real measurements from the demo:

- 10 queries through the router: 7 local (free), 3 cloud → $0.25

- 10 queries through Opus only: $0.48

- Same answers on the easy 7. 48% cheaper overall.

Per-query cloud costs (the three that escalated):

- Tradeoff comparison: ~$0.10 (most expensive — structured comparison runs long, 1,100+ output tokens)

- Security review: ~$0.08 (Opus enumerates everything that could go wrong with the auth flow — 1,200+ output tokens)

- Architecture review: ~$0.07 (cheapest — usually one or two real issues, gets to the point, ~800 output tokens)

The pattern: cost scales with output tokens, and output tokens scale with how much there is to say. The verbose analytical genres (tradeoff, security) cost more than the concise ones (architecture). Output is ~5x the price of input on Opus, so the response length is what moves the bill.

One observation worth flagging: the 7 routed-away queries would have cost ~$0.23 collectively on cloud, almost matching the $0.25 from the 3 cloud queries. Cheap individually, expensive in aggregate. The savings come from removing the long tail of trivial queries from cloud, not from avoiding premium prices on premium queries.

Three things that aren't obvious until you ship this:

  1. Anthropic requires max_tokens on every request. Without it, Spring AI uses a low default and Opus responses truncate mid-sentence. Set AnthropicChatOptions.maxTokens(4096) explicitly.

  2. Opus regularly takes 15-45 seconds per response. Spring AI's underlying Reactor Netty has a shorter default timeout — you'll get ReadTimeoutException. Pass a custom RestClient.Builder with responseTimeout(Duration.ofSeconds(300)) to AnthropicApi.builder().

  3. Token usage metadata is reliable for Anthropic, sometimes null for local models depending on LM Studio model loadout. Build a fallback path (character/4 estimate) so the dashboard never shows mysterious zeros.

Full demo with the live cost dashboard: https://youtu.be/ziMzlY9Szvs

Repo with code: https://github.com/DmitryFinashkin/spring-ai


r/SpringBoot • • Dec 22 '22

Hey , I’am a dot net developer and I want to move to Java spring boot development. Is it possible to find a job as a spring boot developer?

0 Upvotes

r/SpringBoot • • Aug 19 '24

How to Write Effective JUnit Tests for Spring Data JPA CRUD Operation

Thumbnail
youtu.be
0 Upvotes

r/SpringBoot • • Mar 27 '24

NEED HELP😔

0 Upvotes

So i have been on bench since 1.5 year in my company and this is my first job after graduation. I know Java but doesn't have any projects and I don't know what to do please guide me what should i learn and to start making projects to switch the company. Should i learn Spring boot ? is that enough to start making good projects or should i learn front end tech also please help me i am so noob 🙏


r/SpringBoot • • Aug 07 '25

Question Doubt about my possible level (hard skills)

2 Upvotes

I'm 20 years old, I'm a Java dev with Spring Boot and I wanted to know: what is my technical level today? I've never done an internship and I haven't even started college yet (I'm going to start Information Systems at UFJF in September), but I've been studying on my own for a long time and I've already developed several projects with Java + Spring Boot.

My skills include:

Creating well-structured RESTful APIs Microservices architecture Asynchronous communication with RabbitMQ Synchronous communication with OpenFeign and WebClient Authentication with Spring Security, JWT and OAuth2 Tests with JUnit, Mockito and MockMvc Validations, use of DTOs, layered organization and best practices Integration with SQL databases (PostgreSQL, MySQL, SQLite) Docker for containerization of services Transaction control, error handling and REST best practices Organization of projects into multiple modules/repos separated by domain Git and GitHub for versioning 👉 Here is my GitHub with some of the projects: https://github.com/Mizugue Disregarding the experience normally required for professional vacancies, based on my hard skills, what do you think my technical level is today?

Thank you if you can respond!

Note: The last project on github (votingMS) is still being done.


r/SpringBoot • • Dec 26 '24

Which AI IDE are you using for Spring Boot?

2 Upvotes

Apart from Co pilot, what options do we have for an AI assistant?

Codieum errors out as reported by many.

Cursor/Windsurf doesn't work for multi module Spring Boot project


r/SpringBoot • • Apr 20 '24

Java jobs

0 Upvotes

Are there still java jobs out there


r/SpringBoot • • Aug 30 '26

Discussion Spring Boot starter for fail-fast Kafka Schema Registry contract validation

Post image
1 Upvotes

I’ve released a small open-source Spring Boot starter that turns Kafka Schema Registry expectations into startup checks.

Configuration is intentionally Spring Boot-style: define the expected compatibility mode and the subjects/schemas owned by the application, and auto-configuration performs the validation during startup.

It currently supports Avro, JSON Schema and Protobuf, Confluent compatibility modes, secured Schema Registry/Confluent Cloud, bounded retry/backoff and Actuator visibility.

For example:

kafka:
  contract:
    enabled: true
    compatibility: BACKWARD
    registry:
      url: http://localhost:8081
    subjects:
      - name: order-events-value
        schema-file: classpath:schemas/order-event.avsc
        schema-type: AVRO

If the contract is incompatible or the required subject is missing, the Spring Boot application fails during startup.

The starter is published on Maven Central, and I maintain a separate E2E demo that spins up Kafka + Schema Registry and verifies both successful and intentionally breaking schema evolution scenarios.

GitHub:
https://github.com/mathias82/spring-kafka-contract-starter

Demo:
https://github.com/mathias82/spring-kafka-contract-demo

Maven Central:
https://central.sonatype.com/artifact/io.github.mathias82.spring.kafka/spring-kafka-contract-starter

Interested to hear how Spring Boot teams currently handle this application startup validation, deployment pipelines, or something else?


r/SpringBoot • • Oct 03 '26

Question Any suggestions about how build scalable full stack jave application

1 Upvotes

Hey everyone, I’d love to get the community’s perspective on building production-grade, scalable full-stack applications with Spring Boot—specifically from a solo developer standpoint.

​When you're building a scalable full-stack Java app entirely on your own, how do you approach the architecture and tooling?

​A few specific areas I'm curious about:

​Tech Stack & Tools: What are the non-negotiable components in your stack right now (e.g., Spring Boot 3 + Virtual Threads, Postgres/Redis, Kafka/RabbitMQ, Docker, React/Next.js vs. HTMX/Thymeleaf)? What tools are currently standard or trending in the market for solo full-stack setups?

​Build vs. Buy / Scratch vs. Frameworks: As a single developer, your time is limited. How much do you build from scratch versus relying on managed services/third-party tools (like managed Auth, SaaS components, pre-built UI libraries)?

​Solo Execution: Is it realistic to handle end-to-end architecture, backend, frontend, database tuning, and DevOps all by yourself, or at what point do you usually seek external help/collaborators?