出现情景
今天学习Mybatis-plus时候,为启动类的@MapperSacn()添加地址User地址,确保书写无误,但是报错

解决方案
将注解@MapperScan()的User地址只写到父级
即com.example.demo.mapper.UserMapper
=>com.example.demo.mapper

今天学习Mybatis-plus时候,为启动类的@MapperSacn()添加地址User地址,确保书写无误,但是报错
将注解@MapperScan()的User地址只写到父级
即com.example.demo.mapper.UserMapper
=>com.example.demo.mapper