SSH integration error: BeanCreationException: Error creating bean

created at 07-07-2021 views: 3

description

When you encounter an error while working on the project, record it.

error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [com/zking/ssh/book/entity/Dict.hbm.xml] cannot be opened because it does not exist

This error is because there is a problem with the xml and the initialization failed when initializing the spring context.

Solution:

  1. Check your configuration file for errors.
  2. Modify the configuration

The point of this error:

rename resource

Please log in to leave a comment.