自定义标签中@Autowired的属性为null 时间:2019-02-14 05:29:33 【文件属性】: 文件名称:自定义标签中@Autowired的属性为null 文件大小:1KB 文件格式:TXT 更新时间:2019-02-14 05:29:33 标签 Autowired 自定义标签中@Autowired的属性为null 解决办法:两步 1.新建一个类SpringContext,实现接口ApplicationContextAware; 2.spring.xml中添加 3.使用SpingContext.getBean("bean名");获取 立即下载