都运行成功,除了getaway模块

This commit is contained in:
陈云志
2020-12-18 13:28:13 +08:00
parent 467279cc19
commit b4d580ab79
34 changed files with 1588 additions and 162 deletions

View File

@@ -3,9 +3,9 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
ext {
springBoot = "2.4.0"
springBoot = "2.3.4.RELEASE"
alibabaCloud = "2.2.3.RELEASE"
springCloud = "2.2.6.RELEASE"
springCloud = "2.2.5.RELEASE"
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBoot}")
@@ -16,39 +16,41 @@ buildscript {
ext {
devVersion = "dev-9-SNAPSHOT"
}
description = "ruoyi-api-system"
apply from: "../build-config/build-all.gradle"
apply from: "../build-config/build-base.gradle"
apply from: "../build-config/build-boot-jar.gradle"
group = "com.ruoyi"
archivesBaseName = "${project.name}"
archivesBaseName = "project-${project.name}"
dependencies {
implementation "com.ruoyi:ruoyi-api-system:${devVersion}"
implementation "com.ruoyi:ruoyi-common-core:${devVersion}"
implementation "com.ruoyi:ruoyi-common-redis:${devVersion}"
implementation "com.ruoyi:ruoyi-common-security:${devVersion}"
implementation "com.ruoyi:ruoyi-api-system:${devVersion}"
implementation "com.github.penggle:kaptcha:2.3.2"
implementation "io.springfox:springfox-swagger2:2.9.2"
implementation "io.springfox:springfox-swagger-ui:2.9.2"
implementation "com.alibaba.csp:sentinel-datasource-nacos:1.8.0"
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBoot}"
implementation "org.springframework.boot:spring-boot-starter-data-redis:${springBoot}"
implementation "org.springframework.cloud:spring-cloud-starter-gateway:${springCloud}"
// compile "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${alibabaCloud}"
implementation "com.alibaba.cloud:spring-cloud-alibaba-sentinel-gateway:${alibabaCloud}"
implementation "com.alibaba.cloud:spring-cloud-starter-alibaba-sentinel:${alibabaCloud}"
implementation "com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config:${alibabaCloud}"
implementation "com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:${alibabaCloud}"
implementation "com.alibaba.cloud:spring-cloud-alibaba-sentinel-gateway:${alibabaCloud}"
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBoot}"
implementation "org.springframework.boot:spring-boot-starter-data-redis:${springBoot}"
implementation "org.springframework.boot:spring-boot-autoconfigure:${springBoot}"
// compile "org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR8"
implementation("org.springframework.cloud:spring-cloud-starter-gateway:${springCloud}") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-web"
exclude group: "org.springframework.boot", module: "spring-boot-starter-webflux"
}
// implementation "org.springframework.boot:spring-boot-starter-webflux:${springBoot}"
}
static def getGitVersion() {

View File

@@ -99,5 +99,4 @@
</plugin>
</plugins>
</build>
</project>

View File

@@ -3,7 +3,7 @@ server:
port: 8080
# Spring
spring:
spring:
application:
# 应用名称
name: ruoyi-gateway
@@ -16,10 +16,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 192.168.8.201:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 192.168.8.201:8848
# 配置文件格式
file-extension: yml
# 共享配置
@@ -34,7 +34,7 @@ spring:
datasource:
ds1:
nacos:
server-addr: 127.0.0.1:8848
server-addr: 192.168.8.201:8848
dataId: sentinel-ruoyi-gateway
groupId: DEFAULT_GROUP
data-type: json