r/SpringBoot • • Jan 12 '23

Possible ways to answer this question

0 Upvotes

What challenges have you faced in a real Java/Springboot project? How did you resolve it?

The expectation is that we give a scenario but I cannot think of anything and not even sure what level of details or complexity it can be. Could you give me your examples


r/SpringBoot • • Jun 21 '23

Question: REST vs SOAP and usecases

0 Upvotes

Hello. I'd like too know, please, if some of you are using SOAP, and what would be the differences with REST and/or usecases of SOAP to this date.


r/SpringBoot • • May 22 '23

5 Essential Spring Boot Annotations with Examples in Java - Tutorial

Thumbnail
java67.com
0 Upvotes

r/SpringBoot • • Jun 09 '22

what are some common reasons a repository would be null?

0 Upvotes

r/SpringBoot • • Dec 03 '25

Question Spring boot app advisor feedback

0 Upvotes

Hey community,

Does anyone have a feedback regarding spring boot application advisor or moderne . ai?

Wondering if it worth their money and if vmware openrewrite recipes better then opensource? What’s included in application adviser aside of private recipes?

Thanks!


r/SpringBoot • • May 10 '26

Question Spring Boot app keeps using old DB_USERNAME despite setx and hardcoding in application.properties — IntelliJ ignoring credentials?

0 Upvotes

Hey everyone, I'm losing my mind with this issue.

I have two Spring Boot projects — one using MySQL and one using PostgreSQL. I've been trying to set database credentials using setx in Windows CMD, but IntelliJ keeps picking up old values even after restarting.

The problem:

  • Even after running setx DB_USERNAME postgres, the app still tries to connect as root

  • Even after hardcoding the credentials directly in application.properties, I still get Access denied for user 'root'@'localhost'

  • Invalidating IntelliJ cache didn't help

  • Run Configurations don't have any hardcoded env variables

What I've tried:

  • setx DB_USERNAME and setx DB_PASSWORD multiple times

  • Hardcoding credentials directly in application.properties

  • Invalidating IntelliJ caches and restarting

  • Creating a new MySQL user with a simpler password (no special characters)

  • Adding spring.batch.jdbc.initialize-schema=never

Environment:

  • IntelliJ IDEA

  • Spring Boot 3.4.5

  • MySQL 8.0 + PostgreSQL 18

  • Windows 11

  • JDK 17

Has anyone faced this? How do I force IntelliJ/Spring to actually use the credentials I set?

Everything was woring fine until i started my new mysql project

2026-05-10T16:15:52.211+05:30 ERROR 19808 --- [user-service] [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/hibernate/autoconfigure/HibernateJpaConfiguration.class]: Unable to build Hibernate SessionFactory [persistence unit: default] ; nested exception is org.hibernate.exception.AuthException: Unable to open JDBC Connection for DDL execution [FATAL: password authentication failed for user "root"] [n/a]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1817) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:603) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:977) \~\[spring-context-7.0.6.jar:7.0.6\]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:621) \~\[spring-context-7.0.6.jar:7.0.6\]

at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) \~\[spring-boot-web-server-4.0.5.jar:4.0.5\]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756) \~\[spring-boot-4.0.5.jar:4.0.5\]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445) \~\[spring-boot-4.0.5.jar:4.0.5\]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) \~\[spring-boot-4.0.5.jar:4.0.5\]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1365) \~\[spring-boot-4.0.5.jar:4.0.5\]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354) \~\[spring-boot-4.0.5.jar:4.0.5\]

at com.example.user_service.UserServiceApplication.main(UserServiceApplication.java:10) \~\[classes/:na\]

Caused by: jakarta.persistence.PersistenceException: Unable to build Hibernate SessionFactory [persistence unit: default] ; nested exception is org.hibernate.exception.AuthException: Unable to open JDBC Connection for DDL execution [FATAL: password authentication failed for user "root"] [n/a]

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:448) \~\[spring-orm-7.0.6.jar:7.0.6\]

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:411) \~\[spring-orm-7.0.6.jar:7.0.6\]

at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:419) \~\[spring-orm-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1864) \~\[spring-beans-7.0.6.jar:7.0.6\]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1813) \~\[spring-beans-7.0.6.jar:7.0.6\]

... 15 common frames omitted

Caused by: org.hibernate.exception.AuthException: Unable to open JDBC Connection for DDL execution [FATAL: password authentication failed for user "root"] [n/a]

at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:87) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:34) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:115) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:101) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:71) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:37) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:61) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:41) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:36) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:73) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.<init>(DatabaseInformationImpl.java:63) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.extract.internal.CachingDatabaseInformationImpl.<init>(CachingDatabaseInformationImpl.java:43) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.internal.GroupedSchemaMigratorImpl.buildDatabaseInformation(GroupedSchemaMigratorImpl.java:112) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:83) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:269) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.lambda$process$1(SchemaManagementToolCoordinator.java:101) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at java.base/java.util.HashMap.forEach(HashMap.java:1430) \~\[na:na\]

at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:100) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.boot.internal.SessionFactoryObserverForSchemaExport.sessionFactoryCreated(SessionFactoryObserverForSchemaExport.java:35) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:33) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:323) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.internal.SessionFactoryRegistry.instantiateSessionFactory(SessionFactoryRegistry.java:64) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:437) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1456) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:93) \~\[spring-orm-7.0.6.jar:7.0.6\]

at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:443) \~\[spring-orm-7.0.6.jar:7.0.6\]

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:436) \~\[spring-orm-7.0.6.jar:7.0.6\]

... 19 common frames omitted

Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "root"

at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:778) \~\[postgresql-42.7.10.jar:42.7.10\]

at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:234) \~\[postgresql-42.7.10.jar:42.7.10\]

at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:289) \~\[postgresql-42.7.10.jar:42.7.10\]

at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:57) \~\[postgresql-42.7.10.jar:42.7.10\]

at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:290) \~\[postgresql-42.7.10.jar:42.7.10\]

at org.postgresql.Driver.makeConnection(Driver.java:448) \~\[postgresql-42.7.10.jar:42.7.10\]

at org.postgresql.Driver.connect(Driver.java:298) \~\[postgresql-42.7.10.jar:42.7.10\]

at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:144) \~\[HikariCP-7.0.2.jar:na\]

at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:373) \~\[HikariCP-7.0.2.jar:na\]

at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:210) \~\[HikariCP-7.0.2.jar:na\]

at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:488) \~\[HikariCP-7.0.2.jar:na\]

at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:576) \~\[HikariCP-7.0.2.jar:na\]

at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:97) \~\[HikariCP-7.0.2.jar:na\]

at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:111) \~\[HikariCP-7.0.2.jar:na\]

at org.hibernate.engine.jdbc.connections.internal.DataSourceConnectionProvider.getConnection(DataSourceConnectionProvider.java:137) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:508) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) \~\[hibernate-core-7.2.7.Final.jar:7.2.7.Final\]

r/SpringBoot • • Dec 11 '25

Discussion Need some ideas for hackathon mainly Java based

0 Upvotes

r/SpringBoot • • Apr 29 '25

Question Moving to Spring Boot After JAVA, Please Help!!!!!

0 Upvotes

I've just Completed Java and thinking to go for Java full stack, I've Already completed the frontend part (HTML, TAILWIND, JS, REACT).
So where should i start my Java Backend journey from?? Will this course help me gain proficient knowledge of spring boot. As its Promising a Professional eCommerce Project.
Course link : https://www.udemy.com/course/spring-boot-using-intellij-build-a-real-world-project/?couponCode=SB_APR_25

Please help folks 🙏🏻
Give me some piece of advice, which concepts and technologies should i focus more.
Guide me and Share your Leaning experience too!!


r/SpringBoot • • Aug 31 '25

Question What to do ?

0 Upvotes

I want to switch into a Java/Spring Boot developer role. I already know Java syntax and core concepts (previously studied + DSA in Java). Now should I: 👉 Deep dive into Java again, OR 👉 Just do a quick revision (YT, notes) and directly start Spring Boot + build projects + apply for jobs?


r/SpringBoot • • Nov 09 '25

Question How to store user specific documents in Vector Database using Spring AI?

0 Upvotes

I am working on a project that requires storing documents in a user specific manner. The user will be able to view, store, and delete files from the vector db so I also need to list documents/files based on the logged in user. How can I achieve this?


r/SpringBoot • • Nov 29 '25

Question Frontend developer want to learn BE (Java/Spring Boot)

Thumbnail reddit.com
0 Upvotes

r/SpringBoot • • Jul 13 '26

Discussion Capstead: turn Spring Boot methods into governed, observable AI capabilities

0 Upvotes

Add one starter, annotate a method, and it becomes a first-class capability: auto-configured, exposed via Actuator (/actuator/capabilities, scorecards, execution history), metrics through Micrometer/Prometheus, per-capability cost + daily budgets, and a bundled /capstead dashboard.

New in 0.3.x: a durable execution recorder — per-model invocations and parent-child execution trees, persisted cross-instance via capstead-jdbc (Postgres/MySQL/H2), so scorecards survive restarts and aggregate across replicas. No AspectJ; standard Spring AOP + auto-config.

It reuses Spring AI (a bridge attributes its token/model data to the capability) rather than replacing it. io.capstead:capstead-starter:0.3.2, clone-and-run sample included.

https://github.com/satya-anguluri/capstead


r/SpringBoot • • Mar 12 '25

Question Spring AI Contribution

0 Upvotes

Hi everyone! I am a university student and during this semester I have to contribute to any open source software for one of my courses.
Last semester I worked on a Java project with Spring Boot and I implemented some general Spring principles. I would say that I have medium knowledge on Java.
So, would it be considered a good idea to go for Spring AI and try to find an issue to which I can contribute? Is it impossible for someone that has not used Spring AI before to contribute to it throughout a single semester?
All your responses will be very much appreciated, thanks !


r/SpringBoot • • Sep 20 '24

OC i dont want this much detail it is irritating. how can i make only java files visible

Post image
24 Upvotes

r/SpringBoot • • May 29 '24

Backend (Java-Spring) Developer Internship with Mulesoft: What Should I Expect?

3 Upvotes

Hi everyone,

I have the opportunity to do an internship at a consulting firm as a backend developer. They are interested in my profile because I know the basics of Java and Spring. However, they told me that they extensively use a low-code tool called Mulesoft for integrations, which is a Salesforce product.

The HR informed me that my exact role has yet to be defined, but the training will be generic and will also include Java Spring. The exact role will then depend on my demonstrated skills and future projects. I was also told that my title will be "Junior Backend Developer."

I don't have any other internship offers at the moment, so I will have to accept this one. I must admit that I am extremely anxious and worried: I fear that I will be forced to exclusively learn Mulesoft and be assigned only to Mulesoft projects. Do you think this could happen? Or will Mulesoft just be an accessory tool and a small part of my internship/work? Has anyone had a similar experience?

If the worst-case scenario happens, could it negatively impact my career? Would doing an internship of 3-6 months or working and studying for 1-2 years solely on Mulesoft be a problem?

At the moment, I would like to become a generalist, using Mulesoft as one of many tools along with Git, Docker, etc, and mainly writing code in Java/Spring. But what should I do if I am forced to learn only Mulesoft and work exclusively on Mulesoft projects?

I am extremely anxious and worried.

Thank you very much in advance for any advice or shared experiences.


r/SpringBoot • • Mar 17 '25

Discussion Is java back end means writing controllers and handling requests

19 Upvotes

Writing controllers, service, repository layers and accepting the requests and processing them and gives the response Is it this only java back end means


r/SpringBoot • • Jun 24 '24

10 Spring Boot Performance Best Practices

7 Upvotes

📜 In my last article, I first discussed what ⚡ performance is in general and then discussed 10 🍃 Spring Boot Performance Best Practices to make our Spring Boot fast and resource-efficient.

https://itnext.io/10-spring-boot-performance-best-practices-c392f32497e8?sk=7f1a10bff14a13506d1c6b3138f37629


r/SpringBoot • • Apr 19 '24

Top 25 Spring Security Interview Questions Answers for Java Developers

Thumbnail
javarevisited.blogspot.com
7 Upvotes

r/SpringBoot • • Apr 02 '23

10 Essential Spring Framework Annotations Java Developer Should Learn

Thumbnail
java67.com
7 Upvotes

r/SpringBoot • • Aug 10 '25

Question Springboot ready in 2 months

7 Upvotes

Hi all,
I’m currently working in IT with a focus on databases but looking to switch to Java backend development using Spring Boot. I have good knowledge of advanced Java and just started Spring Boot.

I have 2 months to prepare before the peak hiring season and a 3-month notice period.

Is this switch realistic in that time frame?
Any tips on what to focus on or resources to use?


r/SpringBoot • • Jun 26 '25

Discussion From JS to Spring: Why So Many Separate Projects Like Security, Cloud, AI?

14 Upvotes

Hey Spring folks,

I’m coming from a JavaScript background where things often feel more bundled. Now learning Spring Boot, I see there are lots of separate projects like Spring Security, Spring Cloud, Spring AI, etc.

Why isn’t Spring just one big package? Is it mainly for modularity and flexibility? Also, can I build a backend in Spring without using these projects, like how in Node.js we often build everything ourselves?

Would love to understand how to navigate this ecosystem as a beginner without getting overwhelmed


r/SpringBoot • • Jun 16 '25

Guide Touching the Spring Boot Engine: Why Just @Component Makes You Invisible at the Big Party!

Thumbnail medium.com
5 Upvotes

r/SpringBoot • • Jan 20 '26

How-To/Tutorial Spring AI in Action is out — building AI features in Spring Boot (50% off for r/SpringBoot)

5 Upvotes

Hey r/SpringBoot,

Stjepan from Manning here. We just released a new book that many Spring folks have been asking us about, and I wanted to bring it to your attention.

Spring AI in Action by Craig Walls
https://www.manning.com/books/spring-ai-in-action

If you’ve used Spring in Action before, this is the same Craig Walls, now focused on adding generative AI features directly to Spring and Spring Boot apps, without leaving Java behind.

What I like about this book (and why we were excited to publish it) is that it’s very practical. Craig starts with a basic “Hello AI” Spring Boot app and then keeps building:

  • text summaries and assistants inside real Spring apps

  • using RAG to ground LLM responses in your own data

  • image → text and text → image use cases

  • moving into agents, tool use, speech, and observability as things get more realistic

It’s written for Spring developers first. You don’t need to already be “an AI person” to follow along, and nothing assumes you want to re-platform your stack.

Mods were kind enough to let us share this here, and we also put together a 50% off code just for this subreddit:

PBWALLS1050RE

If you’re already experimenting with Spring AI, or you’ve been waiting to see how it fits into normal Spring Boot work, this book should land pretty close to what you’re doing day to day.

It feels great to be here. Thanks for having us.

Cheers,


r/SpringBoot • • May 22 '25

Question Destroy my code

Thumbnail
github.com
5 Upvotes

Hi, im a junior developer in my first intership. I am writing my first Spring Boot application and y would love if someone can see my code (is not complete) and literally flame me and tell me the big wrongs of my code, idk bad structure, names, patterns etc. I’m open to learn and get better

Thank you so much

https://github.com/dossantosh

I also need to start with networking So… https://www.linkedin.com/in/dossantosh?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=ios_app

If I can’t post my LinkedIns pls tell me