package com.bycotrun.platform.utils;
import com.bycotrun.framework.dao.BaseDao;
@Component
public class GetUrl {
private static BaseDao baseDao;
@Autowired
private BaseDao baseDao1;
@PostConstruct
public void init() {
baseDao = baseDao1;
}
public static String sendHttpRequest(String requestUrl, String requestMethod, String outputStr) {
//代码省略......
return null;
}
}
静态方法工具类中使用@Autowired注入Dao为null
最新推荐文章于 2023-03-01 17:09:36 发布