![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
跨域
文章平均质量分 60
yzhSWJ
一个爱小猪的程序员
展开
-
springboot跨域
测试一下,如果有问题请使用注解的方式配置后启动类可以不用加跨域的注解 @CrossOrigin@Configurationpublic class CorsConfig { @Bean public CorsWebFilter corsFilter() { //设置跨域的配置信息 CorsConfiguration config = new CorsConfiguration(); //允许那些请求方式跨域 config.addAl原创 2021-01-30 20:02:50 · 97 阅读 · 0 评论 -
SpringCloud中的gateWay (网关)
一、网关基本概念1、API网关介绍2、Spring Cloud Gateway3、Spring Cloud Gateway核心概念二、创建api-gateway模块(网关服务)1、在创建api_gateway网关模块(springboot)注意:很重要所有服务,都需要在nacos中注册服务**2、在pom.xml引入依赖注意版本号 <dependencies> <!--服务注册nacos--> <dependency>原创 2020-06-13 15:24:16 · 4538 阅读 · 0 评论