“No persistence unit with name 'product' found”

后端 未结 4 1649
攒了一身酷
攒了一身酷 2021-01-05 00:53

I recently completed this tutorial: \"http://static.springsource.org/docs/Spring-MVC-step-by-step/\", but now I want it to work with Hibernate and annotations. I know I\'m c

4条回答
  •  既然无缘
    2021-01-05 01:39

    I run onto the same problem and had to manually edit the Web Deployment Assembly Configuration so as to instruct /META-INF/persistence.xml to be deployed under WEB-INF/classes/ (the red box in the attached img was manually edited)

提交回复
热议问题