I got this error : [RuntimeException: No JPA EntityManagerFactory configured for name [default]] when i try to create a controller method with @Transactional.
Solution:
In application.conf file, put the following entry and assign it to the default entry in Persistance.xml
jpa.default=Default non-jts-data-source entry from Persistance.xml
Solution:
In application.conf file, put the following entry and assign it to the default
jpa.default=Default non-jts-data-source entry from Persistance.xml
No comments:
Post a Comment