How to define an non-JTA datasource for JPA-Hibernate? org.hibernate.connection.DatasourceConnectionProvider - Could not find datasource:

前端 未结 1 1087
我在风中等你
我在风中等你 2021-01-02 07:37

I am trying to change my web-app\'s JDBC code to JPA using Hibernate as provider. I am using Eclipse IDE. In that i have defined a MySQL data source. I added it in the persi

相关标签:
1条回答
  • 2021-01-02 07:56

    You don't need <non-jta-data-source> when your datasource is configured in <properties>. <non-jta-data-source> is needed when datasource is configured in application server configuration and obtained via JNDI.

    0 讨论(0)
提交回复
热议问题