需要將`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