Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-boot-starters
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-boot-starters
提交
67343d6b
提交
67343d6b
编写于
8月 21, 2022
作者:
ibiz4j
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pom
上级
0c59b969
变更
7
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
259 行增加
和
0 行删除
+259
-0
pom.xml
ibizlab-boot-starter-gateway/pom.xml
+121
-0
GatewayApplication.java
...way/src/main/java/cn/ibizlab/boot/GatewayApplication.java
+14
-0
application-eureka.yml
...starter-gateway/src/main/resources/application-eureka.yml
+14
-0
application-nacos.yml
...-starter-gateway/src/main/resources/application-nacos.yml
+12
-0
application.yml
...b-boot-starter-gateway/src/main/resources/application.yml
+91
-0
banner.txt
ibizlab-boot-starter-gateway/src/main/resources/banner.txt
+6
-0
pom.xml
pom.xml
+1
-0
未找到文件。
ibizlab-boot-starter-gateway/pom.xml
0 → 100644
浏览文件 @
67343d6b
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.4.0
</version>
<relativePath/>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
ibizlab-boot-starter-gateway
</artifactId>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
<spring-boot.version>
2.4.0
</spring-boot.version>
<spring-cloud.version>
2020.0.1
</spring-cloud.version>
<spring-cloud-alibaba.version>
2021.1
</spring-cloud-alibaba.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot,not include plugin
management as the parent import style -->
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-dependencies
</artifactId>
<version>
${spring-boot.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
${spring-cloud.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-alibaba-dependencies
</artifactId>
<version>
${spring-cloud-alibaba.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-config
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-ribbon
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-ribbon
</artifactId>
</exclusion>
<exclusion>
<artifactId>
spring-cloud-netflix-ribbon
</artifactId>
<groupId>
org.springframework.cloud
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-gateway
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-loadbalancer
</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
${basedir}/src/main/resources
</directory>
<includes>
<include>
**/**
</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<finalName>
ibizlab-gateway
</finalName>
<jvmArguments>
-Dfile.encoding=UTF-8
</jvmArguments>
<mainClass>
cn.ibizlab.boot.GatewayApplication
</mainClass>
<outputDirectory>
../
</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
ibizlab-boot-starter-gateway/src/main/java/cn/ibizlab/boot/GatewayApplication.java
0 → 100644
浏览文件 @
67343d6b
package
cn
.
ibizlab
.
boot
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
@EnableDiscoveryClient
@SpringBootApplication
public
class
GatewayApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
GatewayApplication
.
class
,
args
);
}
}
ibizlab-boot-starter-gateway/src/main/resources/application-eureka.yml
0 → 100644
浏览文件 @
67343d6b
#eureka配置中心
spring
:
cloud
:
nacos
:
discovery
:
enabled
:
false
eureka
:
client
:
enabled
:
true
serviceUrl
:
defaultZone
:
http://127.0.0.1:8762/eureka/
ibizlab-boot-starter-gateway/src/main/resources/application-nacos.yml
0 → 100644
浏览文件 @
67343d6b
#nacos配置中心
spring
:
cloud
:
nacos
:
discovery
:
server-addr
:
172.16.100.77:8848
enabled
:
true
eureka
:
client
:
enabled
:
false
ibizlab-boot-starter-gateway/src/main/resources/application.yml
0 → 100644
浏览文件 @
67343d6b
server
:
port
:
8080
compression
:
enabled
:
true
mime-types
:
application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
min-response-size
:
10240
spring
:
application
:
name
:
gateway
profiles
:
include
:
nacos, gateway
main
:
allow-bean-definition-overriding
:
true
resources
:
static-locations
:
classpath:/static/,file:/dist/
cloud
:
gateway
:
discovery
:
locator
:
enabled
:
true
lowerCaseServiceId
:
true
routes
:
#配置网关路由规则
-
id
:
cloud_uaa
uri
:
lb://${ibiz.ref.service.uaa:ibzuaa-api}
order
:
10
predicates
:
-
Path=/${ibiz.gateway}/v7/**,/${ibiz.gateway}/uaa/**,/${ibiz.gateway}/sysauthlogs
filters
:
-
StripPrefix=1
-
id
:
ibizcloud_ou
uri
:
lb://${ibiz.ref.service.ou:ibzou-api}
order
:
20
predicates
:
-
Path=/${ibiz.gateway}/ibzemployees**,/${ibiz.gateway}/sysemployees**,/${ibiz.gateway}/ibzdepartments**,/${ibiz.gateway}/sysdepartments**,/${ibiz.gateway}/ibzorganizations**,/${ibiz.gateway}/sysorganizations**
filters
:
-
StripPrefix=1
-
id
:
cloud_workflow
uri
:
lb://${ibiz.ref.service.wf:ibzwf-api}
order
:
30
predicates
:
-
Path=/${ibiz.gateway}/wfcore/**
filters
:
-
StripPrefix=1
-
id
:
cloud_oss
uri
:
lb://${ibiz.ref.service.disk:ibzdisk-api}
order
:
40
predicates
:
-
Path=/${ibiz.gateway}/ibizutil/**,/${ibiz.gateway}/net-disk/**
filters
:
-
StripPrefix=1
-
id
:
cloud_conf
uri
:
lb://${ibiz.ref.service.conf:ibzuaa-api}
order
:
50
predicates
:
-
Path=/${ibiz.gateway}/configs/**
filters
:
-
StripPrefix=1
-
id
:
cloud_dict
uri
:
lb://${ibiz.ref.service.dict:ibzdict-api}
order
:
60
predicates
:
-
Path=/${ibiz.gateway}/dictionar**/**
filters
:
-
StripPrefix=1
#跨域设置
globalcors
:
corsConfigurations
:
'
[/**]'
:
allowedOriginPatterns
:
"
*"
allowed-methods
:
"
*"
allowed-headers
:
"
*"
allow-credentials
:
true
exposedHeaders
:
"
Content-Disposition,Content-Type,Cache-Control"
# 暴露监控端点
management
:
endpoints
:
web
:
exposure
:
include
:
'
*'
logging
:
level
:
root
:
error
ibiz
:
gateway
:
${spring.application.name}
\ No newline at end of file
ibizlab-boot-starter-gateway/src/main/resources/banner.txt
0 → 100644
浏览文件 @
67343d6b
.__ ___. .__ .____ ___.
|__|\_ |__ |__|________| | _____ \_ |__
| | | __ \ | |\___ /| | \__ \ | __ \
| | | \_\ \| | / / | |___ / __ \_| \_\ \
|__| |___ /|__|/_____ \|_______ \(____ /|___ /
\/ \/ \/ \/ \/
pom.xml
浏览文件 @
67343d6b
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<module>
ibizlab-boot-starter-parent
</module>
<module>
ibizlab-boot-starter-parent
</module>
<module>
ibizlab-boot-starter
</module>
<module>
ibizlab-boot-starter
</module>
<module>
ibizlab-boot-starter-data
</module>
<module>
ibizlab-boot-starter-data
</module>
<module>
ibizlab-boot-starter-gateway
</module>
</modules>
</modules>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录