我拆过的坑cycx

查询一下!

UnsatisfiedDependencyException:Unsatisfied dependency expressed through field 'blotService'

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blotController': Unsatisfied dependency expressed through field 'blotService'; 



@SpringBootApplication

@MapperScan("com.gaotiew.springboot.mapper")


这个原因是因为类没有注入进去,可以在启动类上面加个全盘扫描或者你指定扫描其下的任何包–>@ComponentScan(“”)里面写扫描路径


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-BlogPHP 1.7.3

Copyright Your WebSite.Some Rights Reserved.