摘要: 快捷复制: globalcors: # 全局的跨域处理 add-to-simple-url-handler-mapping: true # 解决options请求被拦截问题 corsConfigurations: '[/**]': allowedOrigins: # 允许哪些网站的跨域请求 - "* 阅读全文
posted @ 2022-06-13 15:32 onecyl 阅读(534) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-10 14:14 onecyl 阅读(51) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-09 18:11 onecyl 阅读(29) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-09 17:27 onecyl 阅读(58) 评论(0) 推荐(0)
摘要: 官方文档链接: https://docs.spring.io/spring-cloud-gateway/docs/2.2.9.RELEASE/reference/html/#gateway-request-predicates-factories 阅读全文
posted @ 2022-06-09 16:59 onecyl 阅读(43) 评论(0) 推荐(0)
摘要: 注:此处如果有启动时Warn信息:Cannot determine local hostname 则可以在配置文件中加入以下配置来忽略对虚拟网卡的扫描,可以避免服务启动时的卡顿 spring: cloud: inetutils: # 忽略虚拟机网卡,避免启动项目时卡顿 ignored-interfa 阅读全文
posted @ 2022-06-09 14:40 onecyl 阅读(280) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-09 14:03 onecyl 阅读(51) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-09 11:16 onecyl 阅读(27) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-09 11:06 onecyl 阅读(36) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-09 10:27 onecyl 阅读(26) 评论(0) 推荐(0)