Hibernate Tool slf4j error, hibernateslf4j
After the Hibernate Tool 3.4 plug-in is installed in eclipse, MySql console and model are generated, and slf4j errors are generated all the time, leading to the inability to continue. The solution is as follows:
The root cause is that Hibernate Tool 3.4 uses slf4j 1.5, while eclipse and projects use Versions later than 1.6/1.7, which causes Hibernate Tool to not work.
1. Remove all slf4j references in artifacts. xml of eclipse. If slf4j is not used in the project, it will work theoretically.
Version 2. 1 # has a very high probability of errors, so don't count on it. The solution is:
Download the latest Eclipse 4.4
Install the JBoss Tool 4.2 plug-in. The above bug has been fixed in the Hibernate Tool.
An error occurred while running hibernate in eclipse.
Hibernate uses the slf4j logging system, which integrates log4j, apache commons logging, built-in logging of jdk, and implements logging by itself, it provides a unified interface to encapsulate the log implementation. Download the slf4j-1.5.8.zip package now. This is: Upload (this file must be placed in the src directory)
Hibernate Error
SLF log?
Why do you think the imported package you marked is incorrect?
Caused by: java. lang. ClassNotFoundException: javax. persistence. Cacheable
When annotation is imported, check whether the package has any reference errors.