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

前端 未结 1 1006
我在风中等你
我在风中等你 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 when your datasource is configured in . is needed when datasource is configured in application server configuration and obtained via JNDI.

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