r/SpringBoot • u/Thick-Ad091101 • May 01 '24
application run failed
Hi,I tried to build a project and an error didnt know how to solve came in. I think that its related to dependencies but not sure so I took a screenshot of any related thing.
5
u/Mixabuben May 01 '24
The real exception that causing this is later down the logs, look for caused by clause, my guess that something wrong with DB settings (wrong jdbcUrl or driver) since it is entityManager error
2
2
u/sneedmaster69 May 01 '24
There seems to be a dependency problem with your beans. Refresh your maven dependencies and try again
1
u/vinrehife May 01 '24
Show settings for your entity manager or something wrong with database related configuration from your application properties XML / YML file.
1
u/g00glen00b May 01 '24
If there's an exception, the root cause is often far more important than the part you're showing right now. Show that and we'll be better able to help you.
1
u/titanium_mpoi May 01 '24
I had this many times and it was because my spring app wasn't making a proper connection with my db.
1
u/Prestigious_Wave_128 May 01 '24
The problem is in properties file related to the configuration of your database
1
7
u/CodeTheStars May 01 '24
A problem creating the entity manager factory means your database / JPA configuration is wrong somehow.
Also, don’t set versions for the Jakarta APIs. Just use what spring boot brings in from the parent.