Pārlūkot izejas kodu

fix: remove @EnableWebMvc to restore Jackson JSR310 serialization

yangyi 2 dienas atpakaļ
vecāks
revīzija
fe60a367bf

+ 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 {