写java最怕碰到的异常就是NullPointerException,一出根本摸不着头脑。这里工程参照书本《Hibernate Quickly》

Hibernate学习笔记(二)

        这里直接上图,按照build4.xml第53行去找,发现path和classpath指向都对啊!

Hibernate学习笔记(二)

  然后在schemaexport后面加上这一段,问题解决,这里mark一下,我也不知道为什么,求高手解答!

      < schemaexport  config ="${src.java.dir}/hibernate.cfg.xml"   
            quiet ="no"  text ="true"  drop ="no"  delimiter =";"   
            output ="${build.class.dir}/schema-export.sql"   /> 

       

相关文章:

  • 2022-01-23
  • 2021-10-24
  • 2021-08-24
猜你喜欢
  • 2021-12-29
  • 2021-06-01
  • 2021-06-07
  • 2021-11-25
  • 2021-12-26
相关资源
相似解决方案