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