Springboot中非controller,非service,非dao,的@Autowired空指针
谁空指针给谁加@Component
可能这个类没加@Component也可能这个类里面使用@Autowired注入的类没有@Component 使用@Autowired注入的类里使用的类必须都需要交由springboot管理