报错符号找不到,感觉应该是service层无法连接interface层

这是interface层接口代码

img

这是service层

img

这是controller层(我感觉和这没关系)

img

这是报错

![img](

https://img-mid.csdnimg.cn/release/static/image/mid/ask/429565780726125.png)

兄弟们,问题找到了,我interface层traget里没有ActorService。重新build了一下。
感谢大家帮忙。

报错的图片没有完全显示。
img
似乎是你的代码没有写对。
请检查语法是否不符合规范。

感觉你的@service的注解引入的包也不对,应该为spring里的吧

import org.springframework.stereotype.Service;

如果不行,再将自动管理类的注解@Reference换成@Autowired试试

你试试自动管理类的注解@Reference换成@Resource试试?

代码最好格式化一下,RequestMapping指定好请求方式,@RequestMapping(value = "/hot",method = RequestMethod.GET),或者直接使用 @GetMapping("/hot")
img