1:在工具上添加@service 注解
2:
@Resource
private IFileModelsService fileService;
@Resource
private IKeyWordService keyWordService;
private static FTPUtils ftpUtils;
@PostConstruct
public void init(){
ftpUtils = this;
ftpUtils.fileService = this.fileService;
ftpUtils.keyWordService = this.keyWordService;
}
网友评论