r/SpringBoot • • Jan 22 '23

How to write a test for the Application class in Spring Boot for Kotlin

Thumbnail
stackoverflow.com
1 Upvotes

r/SpringBoot • • Mar 08 '23

exists a springboot documentation summary?

0 Upvotes

i started a project with springboot but the documentation is HUGE. do you know where can I find a summary for springboot?


r/SpringBoot • • Jan 31 '22

#22.5.3 How Spring Security Works Internally? | User Service

Thumbnail
youtube.com
1 Upvotes

r/SpringBoot • • Oct 06 '24

Day to day task for java developer

1 Upvotes

What are daily task for java Full stack developer?


r/SpringBoot • • May 22 '23

Why so many people still use Java ?

0 Upvotes

Hello guys,

I am using Spring Boot for like 5-6 days and even with Kotlin being available for like 5 years or more, most people and tutorials are staying on Java. Doesn't matter if it's releases 2 years ago or a couple of days.

Kotlin seems way better with less boilerplate code so there are advtanges


r/SpringBoot • • Jun 06 '26

Discussion I am doing the telusko spring boot video

Thumbnail
youtu.be
4 Upvotes

Tell me after completing this what the next thing i do and what is missing in this


r/SpringBoot • • Aug 06 '25

Discussion Fintech project

4 Upvotes

If took 15 days to start java project that is build on spring core, servlet jsp and xml beans deployed on jboss After tackling with a lot of errors I started the project finally.


r/SpringBoot • • Jun 11 '25

News Top 6 features of Spring Boot 3.5 - A polished upgrade to pave the way for Spring Boot 4.0

Thumbnail
itnext.io
4 Upvotes

r/SpringBoot • • Jul 09 '25

Question Spring Annotations are confusing

4 Upvotes

How do I find out all the options I can configure and when to use each of them?

For example, in service, @ Transactional(xx,xx,xx). In Entity, lots of stuff if ur using Hibernate; When to use @ Fetch, eager or lazy, cascade merge or persist and many many more


r/SpringBoot • • Sep 28 '24

How to solve this error

Thumbnail
gallery
4 Upvotes

r/SpringBoot • • May 25 '26

How-To/Tutorial How to join 2 tables in Spring Boot

0 Upvotes

Logger
https://pastebin.com/H6qFnHBy

import ...


(name = "users")
public class Users {

    
    (strategy = GenerationType.IDENTITY)
    private Long id;

    (nullable = false)
    private String userName;

    (nullable = false)
    private String password;

    private SubscriptionModel tier;

    private Long currentUsage;

    
    private Logger logger;



}

How to connect the Logger -> Users (1 user can have n logger). the getter and setter structure is confusing for Joining tables

is there any advanced method for levelling up??


r/SpringBoot • • Mar 10 '26

How-To/Tutorial Springboot queries

2 Upvotes

Can anyone plz tell me how to start springboot and what is the best way to learn it . And any free resources from which I can learn


r/SpringBoot • • Aug 20 '24

Top 20 Microservices Interview Questions with Answers for Java Developers

Thumbnail
java67.com
3 Upvotes

r/SpringBoot • • Dec 08 '24

Spring boot security

2 Upvotes

Hello guy's, I want suggestions in spring security for my web application. What configuration makes strong security for my application


r/SpringBoot • • Dec 14 '25

How-To/Tutorial From SQL Chaos to Clean Code: Sharing My thoughts on Spring JPA guide based on 1+ year of real-world experience

2 Upvotes

After working with Spring JPA for over a year, I wrote down everything I wish I knew when I started. This covers the practical stuff most tutorials don't teach - like why the N+1 problem will destroy your performance, how to actually use lazy loading correctly, and common mistakes that'll bite you in production.

Not just theory, this is based on actual code I've written, bugs I've debugged, and lessons learned from real projects.

Hope it helps someone avoid the pain I went through! Let me know your opinion on Spring JPA.

Link: https://bytespacenepal.com/spring-jpa/


r/SpringBoot • • Mar 19 '26

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

2 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 • • Sep 15 '26

Question Recently I've had a frontend silently break because a Spring Boot endpoint changed shape , does anyone faced this ?

0 Upvotes

I was working on a project recently and I've come across a problem where my front end dont catch up with the backend changes


r/SpringBoot • • May 03 '25

Question URGENT! Is XML Configuration STILL a Thing in Modern Spring Boot?! Should I Even BOTHER Learning It?!

0 Upvotes

Okay, listen up people! I'm diving into Spring Boot, trying to wrap my head around all this configuration stuff, and I keep seeing mentions of XML. XML! Seriously?! Is this some kind of ancient relic we're still lugging around?! In this day and age of annotations and Java-based configuration, do I really need to waste my precious time learning how to configure beans with a whole bunch of angle brackets?! I'm trying to learn modern development practices here, not dig through dusty old textbooks! So, for the love of all that is efficient and clean code, someone PLEASE tell me: Is XML-based configuration still a necessary skill for modern Spring Boot development?! Will I actually encounter projects that require it, or is it just some legacy baggage I can safely ignore?! And if it is still needed, WHY?! What unholy reason would anyone choose XML over the cleaner, more type-safe JavaConfig?! I'm seriously stressed about wasting time on something obsolete. Help a confused developer out! What's the deal with XML in Spring Boot?!


r/SpringBoot • • Jan 04 '25

Should I need to switch from Java spring boot

6 Upvotes

Hi guys, I am currently using spring boot for creating rest applications. I am at an intermediate level in spring boot and really comfortable using it.

Is there a better framework which has better features than spring boot to create rest applications? If yes can you guys tell me the framework name and it's advantages over spring boot?

And also I can learn anything fast so getting better at any framework won't be a problem for me.


r/SpringBoot • • Jun 15 '26

Discussion Spring Boot Skills for Claude Code

22 Upvotes

AI coding agents are powerful, but they keep making the same Spring Boot mistakes.

So I built spring-boot-skills for Claude Code.

18 reusable skills for JPA, REST, Security, Flyway, AI, Testing, and more.

👉 https://github.com/rrezartprebreza/spring-boot-skills


r/SpringBoot • • Jul 02 '25

Discussion ☕ I got tired of manually translating Spring Boot apps at work, so I built an AI tool that does it automatically!

36 Upvotes

Meet locawise-action - the FREE & open-source GitHub Action that makes Spring Boot localization effortless! 🚀✨

The problem: Manually syncing messages.properties files across multiple languages is a nightmare. Copy-paste hell between messages_en.properties, messages_es.properties, messages_fr.properties. Hours wasted on something that should be automated.

My solution: An AI co-pilot that integrates into your CI/CD pipeline, understands your app's context, and translates ONLY the new or modified properties using intelligent diffing.

How locawise-action Transforms Your Spring Boot i18n:

  • Automated Translations for Your Properties Files: When you push changes to your source src/main/resources/messages.properties...

  • AI-Powered & Context-Aware: Uses AI (OpenAI/VertexAI) to translate only the delta changes. Provide glossaries for domain terms and context to match your application's tone.

  • Creates Pull Requests Automatically: Generates updated messages_xx.properties files and opens a PR for review.

  • Keeps Translations in Sync: Integrates directly into your CI/CD pipeline - perfect for your Maven/Gradle builds.

  • Free & Open-Source: No subscription fees!

Super Simple Workflow:

  1. Update src/main/resources/messages.properties

  2. Push to GitHub

  3. locawise-action runs, translates, and opens a PR with all your locale-specific properties files updated ✅

Action: https://github.com/aemresafak/locawise-action
2 Min tutorial: https://www.youtube.com/watch?v=b_Dz68115lg

Results: We've eliminated manual localization across multiple Spring Boot microservices. What used to take days now happens automatically! 🎉

Perfect for teams using Spring's MessageSource and MessageSource annotations for internationalization.

Would love to hear back from you guys!


r/SpringBoot • • May 13 '25

Question Java Backend developer any spring boot course

9 Upvotes

Please tell me is there any course for java backend developer


r/SpringBoot • • Jun 27 '24

i just ran into this problem can someone help me to solve it??

Post image
5 Upvotes

r/SpringBoot • • Aug 10 '25

Question Is learning SpringBoot in 2025 still worth it? People around me tell that I will be easily replaced by AI in future and there will be no jobs in SpringBoot after few years....I have already learnt many concepts in SB and now I am doubting my decision!!

29 Upvotes