蘇阿細
首页 统计 关于
1 Sealos3.0离线部署K8s集群 1,085 阅读 2 类的加载 742 阅读 3 Spring Cloud OAuth2.0 726 阅读 4 SpringBoot自动装配原理 691 阅读 5 集合不安全问题 586 阅读
笔记
Java
多线程 注解和反射 JVM JUC 设计模式 Mybatis Spring SpringMVC SpringBoot MyBatis-Plus Elastic Search
微服务
Dubbo Zookeeper SpringCloud Nacos Sentinel
数据库
MySQL Oracle PostgreSQL Redis MongoDB
工作流
Activiti7 Camunda
消息队列
RabbitMQ
前端
HTML5 CSS CSS3 JavaScript jQuery Vue2 Vue3
Linux
容器
Docker Kubernetes
Python
FastApi
登录
标签搜索
  • Java
  • CSS
  • mysql
  • RabbitMQ
  • JavaScript
  • Redis
  • JVM
  • Mybatis-Plus
  • Camunda
  • 多线程
  • CSS3
  • Python
  • Spring Cloud
  • 注解和反射
  • Activiti
  • 工作流
  • SpringBoot
  • Mybatis
  • Spring
  • html5
侧边栏壁纸
博主昵称
蘇阿細

  • 累计撰写 389 篇文章
  • 累计收到 4 条评论
  • 首页
  • 栏目
    • 笔记
    • Java
      • 多线程
      • 注解和反射
      • JVM
      • JUC
      • 设计模式
      • Mybatis
      • Spring
      • SpringMVC
      • SpringBoot
      • MyBatis-Plus
      • Elastic Search
    • 微服务
      • Dubbo
      • Zookeeper
      • SpringCloud
      • Nacos
      • Sentinel
    • 数据库
      • MySQL
      • Oracle
      • PostgreSQL
      • Redis
      • MongoDB
    • 工作流
      • Activiti7
      • Camunda
    • 消息队列
      • RabbitMQ
    • 前端
      • HTML5
      • CSS
      • CSS3
      • JavaScript
      • jQuery
      • Vue2
      • Vue3
    • Linux
    • 容器
      • Docker
      • Kubernetes
    • Python
      • FastApi
  • 页面
    • 统计
    • 关于
搜索到 1 篇与 的结果
  • 配置代理 2022-07-17
    配置代理 方式一在vue.config.js中添加如下配置:devServer: { proxy: 'http://localhost:5000' }注:(1)该方式配置简单,但不能配置多个代理,且不能灵活的控制请求是否走代理​ (2)当请求了前端不存在的资源时,那么该请求会转发给服务器(优先匹配前端资源)方式二devServer: { proxy: { '/api': { target: 'http://localhost:5000', //路径重写 pathRewrite: {'^/api':''}, ws: true, //用于空值请求头中的host值(默认值为true) changeOrigin: true }, '/demo': { target: 'http://localhost:5001', pathRewrite: {'^/demo':''}, ws: true, changeOrigin: true } } }注:可以配置多个代理和灵活的控制请求是否走代理(请求时必须加上前缀)
    • 2022年07月17日
    • 26 阅读
    • 0 评论
    • 0 点赞
博主栏壁纸
博主头像 蘇阿細

389 文章数
4 评论量
标签
舔狗日记
2019 - 2025 © suaxi
已运行 00 天
访问量:311357  加载时间:16ms