@Component
public class QiniuUtil {
@Autowired
private NoodleService noodleService;
private static MsgUtils ms;
@PostConstruct
public void init(){
ms = this;
ms.noodleService = this.noodleService;
}
public static String dealState(String msg){
ms.noodleService.add(msg);
}
静态工具类中使用注解注入service 空指针
猜你喜欢
转载自blog.csdn.net/qq_36802726/article/details/82841735
今日推荐
周排行