A component required a bean of type 'com.rodert.springbootes.util.IdWorker' that could not be found.
1、Idea設置爲警告,或者降低檢測級別@Autowired(required = false)
2、更改@Autowired爲@Resource
3、在服務層加上註解@Service或
在mapper接口類上加上@Repository或@Component標籤
確保包導入正確,@Service正確導入的是import org.springframework.stereotype.Service;
https://blog.csdn.net/weixin_38004638/article/details/97923811
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'com.rodert.springbootes.util.IdWorker' that could not be found.
Action:
Consider defining a bean of type 'com.rodert.springbootes.util.IdWorker' in your configuration.
同時注入報紅