---
title: "hibernate下model数量问题"
author: "tomEnjoy"
date: "2013-04-07T14:44:07Z"
tags: []
categories: ["数据库"]
slug: "hibernate-model"
draft: false
lastmod: "2013-04-07T14:44:07Z"
id: 1843008
url: "https://tomenjoy.iteye.com/blog/1843008"
---

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