经检查发现,需要在启动类上加注解
@MapperScan(basePackages = "com.ruifeng.tjtaxiwebqy.mapper")
即:
结果还是报错,然后发现,还需要在配置文件配置mybatisplus的xml地址:
mybatis-plus.mapper-locations=classpath:/mapper/**.xml
即
然后,访问接口不再报错了,并返回数据正常。
时间:2022-08-03 16:37:50
经检查发现,需要在启动类上加注解
@MapperScan(basePackages = "com.ruifeng.tjtaxiwebqy.mapper")
即:
结果还是报错,然后发现,还需要在配置文件配置mybatisplus的xml地址:
mybatis-plus.mapper-locations=classpath:/mapper/**.xml
即
然后,访问接口不再报错了,并返回数据正常。