ssh项目改造上spring-boot时hibernate迁移报错
异常值 spring-boot中设置了 current_session_context_class=thread 运行起来会报错 org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thre org.hibernate.HibernateException: createSQLQuery is not valid without active transaction 解决办法 修改pom.xml 文件,指定hibernate版本 <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.3.11.Final</version> <exclusions> <exclusion> <artifactId>jboss-logging</artifactId> <groupId>org.jboss.logging</groupId> </exclusion>