// excludePathPatterns 用戶排除攔截 registry.addInterceptor(newApiInterceptor()).addPathPatterns("/user/**");//對來自/user/** 這個鏈接來的請求進行攔截 super.addInterceptors(registry); } } 結語 實現(xiàn)跨域的方式有很多,這只是其中一種。有什么不對的地方希望能及時指出。謝謝!
www.dbjr.com.cn/article/1215...htm 2025-5-16