From 078a41e738820e052007fdc77fb0ee851eabadf1 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 16 Apr 2026 10:40:22 +0800
Subject: [PATCH] refactor(blockchain): 删除区块链相关功能模块

---
 src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java b/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
index ae63e6d..140d052 100644
--- a/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
+++ b/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
@@ -1,15 +1,16 @@
 package com.xcong.excoin.configurations;
 
-import com.xcong.excoin.configurations.security.UserAuthenticationArgumentResolver;
-import com.xcong.excoin.utils.SpringContextHolder;
+import com.aliyun.oss.OSS;
+import com.aliyun.oss.OSSClientBuilder;
+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;
 
 /**
@@ -20,10 +21,9 @@
 @Slf4j
 public class WebMvcConfig implements WebMvcConfigurer {
 
-    @Override
-    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
-        resolvers.add(new UserAuthenticationArgumentResolver());
-    }
+    @Resource
+    private AliOssProperties aliOssProperties;
+
 
     /**
      * 设置cors跨域支持
@@ -38,6 +38,11 @@
                 .allowCredentials(true).maxAge(3600);
     }
 
+    @Bean
+    public OSS ossClient() {
+        return new OSSClientBuilder().build(aliOssProperties.getEndPoint(), aliOssProperties.getAccessKeyId(), aliOssProperties.getAccessKeySecret());
+    }
+
 //    @Bean
 //    public SpringContextHolder springContextHolder() {
 //        return new SpringContextHolder();

--
Gitblit v1.9.1