refactor: 跨域配置顺序使用枚举项

This commit is contained in:
Leslie
2025-09-02 10:38:17 +08:00
parent 1b5400719e
commit 8402441a55

View File

@@ -81,7 +81,7 @@ public class YudaoWebAutoConfiguration implements WebMvcConfigurer {
/**
* 创建 CorsFilter Bean解决跨域问题
*/
@Order(value = 0)
@Order(value = WebFilterOrderEnum.CORS_FILTER)
@Bean
public FilterRegistrationBean<CorsFilter> corsFilterBean() {
// 创建 CorsConfiguration 对象