Location of hibernate.cfg.xml in project?

前端 未结 10 1807
盖世英雄少女心
盖世英雄少女心 2020-11-27 07:28

I created a project with following structure:

\"enter

HibernateUtil:



        
10条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 07:57

    My problem was that i had a exculding patern in the resorces folder. After removing it the

    config.configure(); 
    

    worked for me. With the structure src/java/...HibernateUtil.java and cfg file under src/resources.

提交回复
热议问题