Spring 和 Hibernate 遇到问题

1.

Cannot convert value of type [java.lang.String] to required type [org.hibernate.SessionFactory] for property 'sessionFactory'


Failed to convert property value of type [java.lang.String] to required type [org.hibernate.SessionFactory] for property 'sessionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.hibernate.SessionFactory] for property 'sessionFactory': no matching editors or conversion strategy found

解决:<property name="sessionFactory" ref="sessionFactory"/>

2.java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

解决:缺失aspectjweaver.jar



你可能感兴趣的:(Spring 和 Hibernate 遇到问题)