persistence function

Searching…

stackoverflow.com

java - Spring-boot: cannot use persistence - Stack Overflow

I don't think persistence.xml is loaded by default, so probably that's the issue. So why don't you go with the flow and use Java and application.properties to configure the entity manager? The JPA sample from Spring B...