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

在这里插入图片描述
刚刚接触jpa springboot 写了一些小的功能发现程序报出此错误 记录一下

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

发布了12 篇原创文章 · 获赞 2 · 访问量 316

猜你喜欢

转载自blog.csdn.net/xiaojiakun/article/details/103664357
今日推荐