Quellcode durchsuchen

fix: remove @EnableWebMvc to restore Jackson JSR310 serialization

yangyi vor 2 Tagen
Ursprung
Commit
fe60a367bf
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. 0 2
      src/main/java/space/anyi/serve/config/WebConfig.java

+ 0 - 2
src/main/java/space/anyi/serve/config/WebConfig.java

@@ -5,7 +5,6 @@ import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.web.filter.CommonsRequestLoggingFilter;
 import org.springframework.web.servlet.config.annotation.CorsRegistry;
-import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 
 /**
@@ -16,7 +15,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
  * @date:2026/4/28 10:51
  * @description:
  */
-@EnableWebMvc
 @Configuration
 public class WebConfig implements WebMvcConfigurer {