常用于工具类 一个类,类中所有的方法都是static的,当在此类注入时应改变注入方式,否则注入的对象为null@Autowiredprivate RTDServiceMapper rtdService;private static RTDServiceMapper rtdServiceMapper;@PostConstructpublic void init() { rtdServiceMapper = rtdService;//赋值}