From 869769dedf8722109c944db9a5d9fac97591c2d3 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Sat, 16 Jan 2021 14:41:57 +0800
Subject: [PATCH] TRC20版本提交
---
src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java | 90 +++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 87 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java b/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
index 06994e0..08cc9d7 100644
--- a/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
+++ b/src/main/java/com/xcong/excoin/configurations/WebMvcConfig.java
@@ -8,10 +8,14 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;
+import org.springframework.format.FormatterRegistry;
+import org.springframework.http.converter.HttpMessageConverter;
+import org.springframework.validation.MessageCodesResolver;
+import org.springframework.validation.Validator;
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 org.springframework.web.method.support.HandlerMethodReturnValueHandler;
+import org.springframework.web.servlet.HandlerExceptionResolver;
+import org.springframework.web.servlet.config.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@@ -33,6 +37,76 @@
resolvers.add(new UserAuthenticationArgumentResolver());
}
+ @Override
+ public void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> list) {
+
+ }
+
+ @Override
+ public void configureMessageConverters(List<HttpMessageConverter<?>> list) {
+
+ }
+
+ @Override
+ public void extendMessageConverters(List<HttpMessageConverter<?>> list) {
+
+ }
+
+ @Override
+ public void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> list) {
+
+ }
+
+ @Override
+ public void extendHandlerExceptionResolvers(List<HandlerExceptionResolver> list) {
+
+ }
+
+ @Override
+ public Validator getValidator() {
+ return null;
+ }
+
+ @Override
+ public MessageCodesResolver getMessageCodesResolver() {
+ return null;
+ }
+
+ @Override
+ public void configurePathMatch(PathMatchConfigurer pathMatchConfigurer) {
+
+ }
+
+ @Override
+ public void configureContentNegotiation(ContentNegotiationConfigurer contentNegotiationConfigurer) {
+
+ }
+
+ @Override
+ public void configureAsyncSupport(AsyncSupportConfigurer asyncSupportConfigurer) {
+
+ }
+
+ @Override
+ public void configureDefaultServletHandling(DefaultServletHandlerConfigurer defaultServletHandlerConfigurer) {
+
+ }
+
+ @Override
+ public void addFormatters(FormatterRegistry formatterRegistry) {
+
+ }
+
+ @Override
+ public void addInterceptors(InterceptorRegistry interceptorRegistry) {
+
+ }
+
+ @Override
+ public void addResourceHandlers(ResourceHandlerRegistry resourceHandlerRegistry) {
+
+ }
+
/**
* 设置cors跨域支持
*
@@ -46,6 +120,16 @@
.allowCredentials(true).maxAge(3600);
}
+ @Override
+ public void addViewControllers(ViewControllerRegistry viewControllerRegistry) {
+
+ }
+
+ @Override
+ public void configureViewResolvers(ViewResolverRegistry viewResolverRegistry) {
+
+ }
+
@Bean
public OSS ossClient() {
return new OSSClientBuilder().build(aliOssProperties.getEndPoint(), aliOssProperties.getAccessKeyId(), aliOssProperties.getAccessKeySecret());
--
Gitblit v1.9.1