HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.lxb.say.mapper.UserMapper.selectUserById
因为没有将mapper.xml打包进去
解决步骤1.
在pom中的对应位置添加配置
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources>