How to fix org.hibernate.SessionFactory cannot be resolved (Lỗi Hibernate bị ngu)

If run project spring boot or java class error contain below:

Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/hibernate/boot/registry/StandardServiceRegistryBuilder

When run class

When run spring boot project

How to resolve:

Access page: https://mvnrepository.com/artifact/org.hibernate/hibernate-core

get version dependency lasted to update pom.xml file below:

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-core</artifactId>
  <version>5.2.11.Final</version>
</dependency>

Sliding Sidebar

About Me

About Me

Hello, my name is Dũng (Johnny). Welcome to my blog.

As I’m a developer, I write about topics related to the field of programming, mainly from a technical point of view. On this blog you’ll find posts which encourage discussion, information about development trends, case studies, reviews, tutorials, tips on how to improve your effectiveness, and anything else that might be fascinating to people from the IT industry.
I love PHP, NodeJS, Java,... and Fullstack.