解决SpringBoot无法注入service的原因之一TestController required a bean of type 'com.yifeng.study.service报错
解决SpringBoot无法注入service的原因之一TestController required a bean of type ‘com.yifeng.study.service.UserService’ that could not be found.报错问题描述原因主启动类与被扫描的文件夹不在同一路径下,所以扫描不到。解决办法我在这里多了一层web,将主启动类放入stud...