Spring mvc运行出现错误,如下:
SEVERE: Servlet.service() for servlet osAppServlet threw exception
java.lang.NoSuchMethodException: com.asia.pojo.User.<init>()
原因1. 是mybatis的pojo类中没有加默认构造方法。
Spring mvc运行出现错误,如下:
SEVERE: Servlet.service() for servlet osAppServlet threw exception
java.lang.NoSuchMethodException: com.asia.pojo.User.<init>()
原因1. 是mybatis的pojo类中没有加默认构造方法。