Servlet.service() for servlet [springMVC] in context with path [/act2] threw
严重:Servlet.service()forservlet[springMVC]incontextwithpath[/act2]threwexception[Reque...
严重: Servlet.service() for servlet [springMVC] in context with path [/act2] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Mapper method 'department.dao.DepartmentDao.adddepartment' has an unsupported return type
: class java.lang.String
at org.apache.ibatis.binding.MapperMethod.rowCountResult(MapperMethod.java:91)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
at com.sun.proxy.$Proxy24.adddepartment(Unknown Source)
at department.servier.DepartmentServiceImpl.adddepartment(DepartmentServiceImpl.java:19)
at department.web.DepartmentController.adddepartment(DepartmentController.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) 展开
: class java.lang.String
at org.apache.ibatis.binding.MapperMethod.rowCountResult(MapperMethod.java:91)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
at com.sun.proxy.$Proxy24.adddepartment(Unknown Source)
at department.servier.DepartmentServiceImpl.adddepartment(DepartmentServiceImpl.java:19)
at department.web.DepartmentController.adddepartment(DepartmentController.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询