I have working project with springboot 2, with 2 datasources configured as shown in here or here. I upgraded to springboot 3. All LocalContainerEntityManagerFactoryBean
, DataSource
, DataSourceProperties
and PlatformTransactionManager
remained the same. But when I run the project now, I’m getting:
PersistenceUnitInfo [
name: read-only
persistence provider classname: null
classloader: jdk.internal.loader.ClassLoaders$AppClassLoader@4e0e2f2a
excludeUnlistedClasses: true
JTA datasource: null
Non JTA datasource: net.ttddyy.dsproxy.support.ProxyDataSource@6f36267d
Transaction type: RESOURCE_LOCAL
PU root URL: file:…/target/classes/
Shared Cache Mode: UNSPECIFIED
Validation Mode: AUTO
Jar files URLs []
Managed classes names []
Mapping files names []
Properties []
Yes, if I create MWE in initializr, just put there spring.datasource.url = …
, and otherwise rely on spring-magic, it will work.
Can someone advise what am I missing, what was changed in springboot 3 in configuring jpa, or what can I debug to find out why none jpa entity is discovered?