✅ 操作成功!

Consider defining a bean of type 'com.ge.information.mapper.UserMapper' in your configurat

发布时间:2023-06-12 作者:admin 来源:文学

Consider defining a bean of type 'com.ge.information.mapper.UserMapper' in your configurat

Consider defining a bean of type 'com.ge.information.mapper.UserMapper' in your configurat

解决办法:

一:加入@MapperScan(value="com.ge.information.mapper")

@MapperScan(value="com.ge.information.mapper") public class InformationApplication { public static void main(String[] args) { SpringApplication.run(InformationApplication.class, args); } }

或者二:加入

@Mapper @Mapper public interface UserMapper extends BaseMapper<UserEntity> {xxx}

 

👁️ 阅读量:0