Home  >  Article  >  Database  >  HibernateToolslf4j出错

HibernateToolslf4j出错

WBOY
WBOYOriginal
2016-06-07 16:06:271021browse

eclipse里装了Hibernate Tool 3.4插件后,生成MySql console,model等是,一直出现slf4j错误,导致不能做下去。修复如下 根本原因是Hibernate Tool 3.4使用的是slf4j 1.5版本,而eclipse里和项目中使用的老早就1.6/1.7之上的版本了,这导致Hibernate Tool不

eclipse里装了Hibernate Tool 3.4插件后,生成MySql console,model等是,一直出现slf4j错误,导致不能做下去。修复如下

根本原因是Hibernate Tool 3.4使用的是slf4j 1.5版本,而eclipse里和项目中使用的老早就1.6/1.7之上的版本了,这导致Hibernate Tool不工作。

1. 去掉eclipse 的artifacts.xml中所有slf4j引用。如果项目中没有使用slf4j的话,理论上就可以工作了。

2. 1#的版本,出错的概率非常高,基本就别指望了。最终偶的解决办法是:

下载最新的Eclipse 4.4

安装JBoss Tool 4.2插件。这里面的Hibernate Tool里已经修复了上面的bug。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:C#小结Next article:mongodumpandmongorestoreofmogodb