Field userService in com.webwork.controller.WebController required a bean of type 'com.webwork.servi

Field userService in com.webwork.controller.WebController required a bean of type 'com.webwork.servi_第1张图片
刚刚接触jpa springboot 写了一些小的功能发现程序报出此错误 记录一下

解决方法
在ServiceImpl里加上@Service注解就可以了
在这里插入图片描述

你可能感兴趣的:(jpa,springboot)