集成 Feign 接口化管理 Http请求(如短信,支付,推送等)

This commit is contained in:
疯狂的狮子li
2021-01-27 15:15:03 +08:00
parent a4756004f8
commit 118c02144f
11 changed files with 143 additions and 0 deletions

View File

@ -3,12 +3,14 @@ package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* 启动程序
*
* @author ruoyi
*/
@EnableFeignClients
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{

View File

@ -190,3 +190,13 @@ xss:
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
feign:
# 开启压缩
compression:
request:
enabled: true
response:
enabled: true
okhttp:
enabled: true