HTTP Status 500 错误怎么办?
页面显示这个错误:
HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.Lovelife.entity.User with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.Lovelife.entity.User.<init>()
后台显示错误:
Servlet.service() for servlet [spring] in context with path [/Lovelife] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.Lovelife.entity.User with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.Lovelife.entity.User.<init>()] with root cause
java.lang.NoSuchMethodException: com.Lovelife.entity.User.<init>()
我使用的是用户表的映射,但是一直报错,我在映射的文件里加了构造方法了,一样没有用,哪位大神解答一下疑问?