SpringCloudGateway配置方式如何配置路由
现在大部分公司使用的开源网关都是spring cloud zuul,所以在网上关于spring cloud gateway的实践博客也相对较少。
这里简单给大家看一下配置方式如何配置路由,后续再写针对一些场景的网关服务如何做的博客。
参考配置如下:
1 | server: |
热爱技术 热爱生活
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true