多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 工具类中使用@Autowired注入 ``` 一个类,类中所有的方法都是static的,当在此类注入时应改变注入方式,否则注入的对象为null @Autowired private RTDServiceMapper rtdService; private static RTDServiceMapper rtdServiceMapper; @PostConstruct public void init() { rtdServiceMapper = rtdService;//赋值 } ```