报错如下:
Consider defining a bean of type 'com.xiongzai.mall.dao.UmsAdminRoleRelationDao' in your configuration.
原因是bean没有注入导致的,需要在启动类上加对应的注解,手动指定application类要扫描哪些包下的注解:@ComponentScan(basePackages = {"com.xiongzai.mall.dao"})
报错如下:
Consider defining a bean of type 'com.xiongzai.mall.dao.UmsAdminRoleRelationDao' in your configuration.
原因是bean没有注入导致的,需要在启动类上加对应的注解,手动指定application类要扫描哪些包下的注解:@ComponentScan(basePackages = {"com.xiongzai.mall.dao"})