报错:
The dependencies of some of the beans in the application context form a cycle:
问题原因:service层 互相引用。
原本用的注解是@AllArgsConstructor 注入final的方式。但是service层自引用会报错,改成 @Autowired注解即可。
如果启动了还是报那个错,试一试将最上方的@AllArgsConstructor注解去掉。所有的注入都换成 @Autowired或者 @Resource