异常:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.power.manager.dal.mapper.SysUserMapper.selectLoginUserDto at com.baomidou.mybatisplus.core.override.MybatisMapperMethod$SqlCommand.<init>(MybatisMapperMethod.java:242) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.<init>(MybatisMapperMethod.java:54) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.lambda$cachedMapperMethod$0(MybatisMapperProxy.java:65) at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.cachedMapperMethod(MybatisMapperProxy.java:65) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:60) at com.sun.proxy.$Proxy106.selectLoginUserDto(Unknown Source)
原因:
mybatis-plus: type-aliases-package: com.power.manager.dal mapper-locations: classpath:com.power.manager.dal.mapper.*/*.xml global-config: db-config: db-type: mysql
改后:
mybatis-plus: type-aliases-package: com.power.manager.dal mapper-locations: classpath:com.power.manager.dal.mapper/*/*.xml global-config: db-config: db-type: mysql