org.hibernate.SessionFactory
2018-09-21 本文已影响21人
AC编程
一、将旧项目转换成SpringBoot, 错误信息提示
Parameter 0 of method setCwSessionFactory in com.netelis.yopoint.dao.member.MertAppManagerDao required a bean of type 'org.hibernate.SessionFactory' that could not be found.
二、原因
SpringBoot 2.0 默认提供的spring-beans 版本为5.0.9,版本太高
三、解决
将spring-beans 版本降为4.2.5
compile group: 'org.springframework', name: 'spring-beans', version: '4.2.5.RELEASE'