Parameter 9 of constructor in com.xxx.impl.xxxServiceImpl required a bean of type 'int' that could not be found.
1查看Service实现类是否加了@AllArgsConstructor
2删除@AllArgsConstructor
3给每个要注入的serviceBean加@Resource
原因
lombok的@AllArgsConstructor注解会代替@Autowired注入,导致某些不需要手动注入的bean重复加了
@Autowired