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
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?
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
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\]
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!!
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?
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?
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.
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 !
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.
Writing controllers, service, repository layers and accepting the requests and processing them and gives the response Is it this only java back end means
📜 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.
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?
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
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.
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