Преглед на файлове

# fix: 移除@EnableWebMvc恢复LocalDateTime ISO序列化

yangyi преди 2 месеца
родител
ревизия
4e08752538
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      src/main/java/space/anyi/serve/config/WebConfig.java

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

@@ -1,11 +1,9 @@
 package space.anyi.serve.config;
 
-import org.springframework.boot.web.servlet.FilterRegistrationBean;
 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 +14,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
  * @date:2026/4/28 10:51
  * @description:
  */
-@EnableWebMvc
 @Configuration
 public class WebConfig implements WebMvcConfigurer {