需要将`mapper`包放到`resources`文件下,否则xml不解析就会报`org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mp.dao.UserMapper.selectAll`错误。同时需要修改`application.yml`中的`mapper-locations`路径,因为移动了:
```
mybatis-plus:
mapper-locations:
- /mapper/*.xml
```
```
mybatis-plus:
mapper-locations:
- /mapper/*.xml
```
2019-06-19