From ae403b4e16296712de0fd3e954a83d6279420121 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 02 Jun 2026 09:57:50 +0800
Subject: [PATCH] refactor(okxNewPrice): 更新配置并优化网格交易初始化逻辑
---
src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java b/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
index c31c084..dd6595f 100644
--- a/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
+++ b/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
@@ -1,12 +1,14 @@
package com.xcong.excoin.configurations;
-import com.xcong.excoin.utils.SpringContextHolder;
+import com.xcong.excoin.configurations.properties.AliOssProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringBootConfiguration;
-import org.springframework.context.annotation.Bean;
+import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+import javax.annotation.Resource;
+import java.util.List;
/**
* @author wzy
@@ -16,8 +18,12 @@
@Slf4j
public class WebMvcConfig implements WebMvcConfigurer {
+ @Resource
+ private AliOssProperties aliOssProperties;
+
+
@Override
- public void addInterceptors(InterceptorRegistry registry) {
+ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
}
/**
@@ -33,8 +39,4 @@
.allowCredentials(true).maxAge(3600);
}
- @Bean
- public SpringContextHolder springContextHolder() {
- return new SpringContextHolder();
- }
}
--
Gitblit v1.9.1