hibernate下model数量问题

  背景:今天在项目里加入一个新的model后,发现tomcat启动不了了,在hibernate.cfg.xml文件里删除任何一个model,启动正常。
  解决办法:在jre启动参数里加入下面一句话,-XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder.setType

猜你喜欢

转载自tomenjoy.iteye.com/blog/1843008