环境搭建问题

1、service层未标注解@Transactional

Struts Problem Report

Struts has detected an unhandled exception:

Messages:
  • No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
  • File: org/springframework/orm/hibernate3/SpringSessionContext.java
    Line number: 63


    2、BaseDaoImpl标记多余的注解@Repository

    Constructor threw exception; nested exception is java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType


    你可能感兴趣的:(TO,thread,Hibernate,session,cast,cannot,bound,No,be,java.lang.Class)