後臺控制器報錯
: Servlet.service() for servlet [Springmvc] in context with path [/yiyangzhongxin] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'user_name' not found. Available parameters are [0, 1, param1, param2]] with root cause
org.apache.ibatis.binding.BindingException: Parameter 'user_name' not found. Available parameters are [0, 1, param1, param2]
包以上的錯誤只需要在文件傳值接收形參的時候加上@Param()註解就好了
public User rolemodule(@Param("moduleID") Integer moduleID,@Param("user_name")String user_name);