Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.southwind.mmall002.service.UserService.getOne] with root cause
這些錯誤呢,是因為對應的mapper類的方法沒有實現,也就是說,mapper.xml文件沒有加載到或者加載錯誤。通過反復檢查錯誤發現自己注解寫錯了。@MapperScan("com.southwind,mmall002.mapper")改為@MapperScan("com.southwind.mmall002.mapper")將逗號改成點,低級錯誤。。。。。。