This commit is contained in:
ZiJIe 2025-06-24 10:25:41 +08:00
parent e0a90e3d3e
commit c6a37ff805

View File

@ -97,7 +97,8 @@ public class WebMagicController extends BaseController implements PageProcessor
@SuppressWarnings("unchecked")
private void loadProxyConfig() {
try {
File configFile = ResourceUtils.getFile("classpath:test_proxy.yml");
// File configFile = ResourceUtils.getFile("classpath:test_proxy.yml");
File configFile = new File("/www/java_mall/erp/config/test_proxy.yml");
if (configFile.exists()) {
Yaml yaml = new Yaml();
try (InputStream inputStream = new FileInputStream(configFile)) {