Просмотр исходного кода

fix: remove @EnableWebMvc to restore Jackson JSR310 serialization

yangyi 2 дней назад
Родитель
Сommit
fe60a367bf
1 измененных файлов с 0 добавлено и 2 удалено
  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 {