diff --git a/pom.xml b/pom.xml index fe8f50c8..c3677d07 100644 --- a/pom.xml +++ b/pom.xml @@ -3,75 +3,95 @@ 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"> 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 2.2.4.RELEASE - - - - cn.iocoder.mall - onemall - 1.0-SNAPSHOT - - common - mall-dependencies - user-service-project - system-service-project - pay-service-project - management-web-app - shop-web-app - product-service-project - promotion-service-project - search-service-project - trade-service-project - + cn.iocoder.cloud + yudao + ${revision} pom + + yudao-dependencies + yudao-gateway + + + + + + + + + + + + ${project.artifactId} + 芋道项目基础脚手架 + https://github.com/YunaiV/ruoyi-vue-pro - + 1.6.2-snapshot + 1.8 - - 1.16.14 - 1.3.0.Final + ${java.version} + ${java.version} + 3.0.0-M5 + 3.8.0 + + 1.18.20 + 1.4.1.Final + UTF-8 + + + + cn.iocoder.cloud + yudao-dependencies + ${revision} + pom + import + + + + - + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + org.apache.maven.plugins maven-compiler-plugin ${maven-compiler-plugin.version} - ${java.version} - ${java.version} - - org.mapstruct - mapstruct-processor - ${org.mapstruct.version} - org.projectlombok lombok - ${org.projectlombok.version} + ${lombok.version} + + + org.mapstruct + mapstruct-processor + ${mapstruct.version} - - - - org.springframework.boot - spring-boot-maven-plugin - - true - - + + + + aliyunmaven + aliyun + https://maven.aliyun.com/repository/public + + + diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml new file mode 100644 index 00000000..88872217 --- /dev/null +++ b/yudao-dependencies/pom.xml @@ -0,0 +1,594 @@ + + + 4.0.0 + + cn.iocoder.cloud + yudao-dependencies + ${revision} + pom + + ${project.artifactId} + 基础 bom 文件,管理整个项目的依赖版本 + https://github.com/YunaiV/ruoyi-vue-pro + + + 1.6.2-snapshot + + 2.6.7 + 2021.0.1 + 2021.0.1.0 + + 3.0.2 + 1.5.22 + 2.5 + + 1.2.8 + 3.4.3.4 + 3.5.2 + 3.5.0 + 3.17.0 + + 1.9.2 + + + 2.2.0 + 1.7.0 + + 8.7.0 + 2.6.2 + 0.31.0 + + 7.2.6.RELEASE + 0.1.16 + 3.9.0 + + 7.1.0.M6 + 6.7.0 + + 3.0.4 + 1.18.20 + 1.4.1.Final + 5.6.1 + 2.2.7 + 2.2 + 1.0.5 + 30.1.1-jre + 5.1.0 + 2.12.2 + 3.8.0 + 0.1.55 + + 8.2.2 + 4.5.25 + 2.1.0 + 3.1.471 + 1.2.7 + 1.4.0 + + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring.boot.version} + pom + import + + + org.springframework.cloud + spring-cloud-dependencies + ${spring.cloud.version} + pom + import + + + com.alibaba.cloud + spring-cloud-alibaba-dependencies + ${spring.cloud.alibaba.version} + pom + import + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.springframework.boot + spring-boot-configuration-processor + ${spring.boot.version} + + + + + cn.iocoder.boot + yudao-spring-boot-starter-web + ${revision} + + + + cn.iocoder.boot + yudao-spring-boot-starter-security + ${revision} + + + + com.github.xiaoymin + knife4j-spring-boot-starter + ${knife4j.version} + + + mapstruct + org.mapstruct + + + guava + com.google.guava + + + swagger-annotations + io.swagger + + + + + io.swagger + swagger-annotations + ${swagger-annotations.version} + + + + + + + + + + + mysql + mysql-connector-java + ${mysql.version} + + + com.alibaba + druid-spring-boot-starter + ${druid.version} + + + com.baomidou + mybatis-plus-boot-starter + ${mybatis-plus.version} + + + com.baomidou + mybatis-plus-generator + ${mybatis-plus-generator.version} + + + com.baomidou + dynamic-datasource-spring-boot-starter + ${dynamic-datasource.version} + + + + + + + + + + org.redisson + redisson-spring-boot-starter + ${redisson.version} + + + + + + + + + + + com.ctrip.framework.apollo + apollo-client + ${apollo.version} + + + + + + + + + + + + + + + + + + + + + + + + + com.baomidou + lock4j-redisson-spring-boot-starter + ${lock4j.version} + + + redisson-spring-boot-starter + org.redisson + + + + + + io.github.resilience4j + resilience4j-ratelimiter + ${resilience4j.version} + + + io.github.resilience4j + resilience4j-spring-boot2 + ${resilience4j.version} + + + + + + + + + + + org.apache.skywalking + apm-toolkit-trace + ${skywalking.version} + + + org.apache.skywalking + apm-toolkit-logback-1.x + ${skywalking.version} + + + org.apache.skywalking + apm-toolkit-opentracing + ${skywalking.version} + + + + + + + + + + + + + io.opentracing + opentracing-api + ${opentracing.version} + + + io.opentracing + opentracing-util + ${opentracing.version} + + + io.opentracing + opentracing-noop + ${opentracing.version} + + + + de.codecentric + spring-boot-admin-starter-server + ${spring-boot-admin.version} + + + de.codecentric + spring-boot-admin-starter-client + ${spring-boot-admin.version} + + + + + + + + + + + + org.mockito + mockito-inline + ${mockito-inline.version} + + + + org.springframework.boot + spring-boot-starter-test + ${spring.boot.version} + + + asm + org.ow2.asm + + + org.mockito + mockito-core + + + + + + com.github.fppt + jedis-mock + ${jedis-mock.version} + + + + uk.co.jemos.podam + podam + ${podam.version} + + + + + org.activiti + activiti-spring-boot-starter + ${activiti.version} + + + de.odysseus.juel + juel-api + + + de.odysseus.juel + juel-spi + + + org.mybatis + mybatis + + + el-api + javax.el + + + + + org.activiti + activiti-image-generator + ${activiti.version} + + + + + + + + + + + + + + + org.flowable + flowable-spring-boot-starter-basic + ${flowable.version} + + + org.flowable + flowable-spring-boot-starter-actuator + ${flowable.version} + + + + + + + + + + + + com.github.ulisesbocchio + jasypt-spring-boot-starter + ${jasypt-spring-boot-starter.version} + + + + + + + + + + org.projectlombok + lombok + ${lombok.version} + + + + org.mapstruct + mapstruct + ${mapstruct.version} + + + org.mapstruct + mapstruct-jdk8 + ${mapstruct.version} + + + org.mapstruct + mapstruct-processor + ${mapstruct.version} + + + + cn.hutool + hutool-all + ${hutool.version} + + + + com.alibaba + easyexcel + ${easyexcel.verion} + + + + org.apache.velocity + velocity-engine-core + ${velocity.version} + + + + cn.smallbun.screw + screw-core + ${screw.version} + + + org.freemarker + freemarker + + + + + + com.google.guava + guava + ${guava.version} + + + + com.google.inject + guice + ${guice.version} + + + + com.alibaba + transmittable-thread-local + ${transmittable-thread-local.version} + + + + commons-net + commons-net + ${commons-net.version} + + + com.jcraft + jsch + ${jsch.version} + + + + + + + + + + io.minio + minio + ${minio.version} + + + + + com.yunpian.sdk + yunpian-java-sdk + ${yunpian-java-sdk.version} + + + com.aliyun + aliyun-java-sdk-core + ${aliyun-java-sdk-core.version} + + + opentracing-api + io.opentracing + + + opentracing-util + io.opentracing + + + + + com.aliyun + aliyun-java-sdk-dysmsapi + ${aliyun-java-sdk-dysmsapi.version} + + + com.tencentcloudapi + tencentcloud-sdk-java + ${tencentcloud-sdk-java.version} + + + + + com.xkcoding.justauth + justauth-spring-boot-starter + ${justauth.version} + + + + + + diff --git a/yudao-gateway/pom.xml b/yudao-gateway/pom.xml new file mode 100644 index 00000000..61e28a02 --- /dev/null +++ b/yudao-gateway/pom.xml @@ -0,0 +1,26 @@ + + + + yudao + cn.iocoder.cloud + ${revision} + + 4.0.0 + yudao-gateway + jar + + ${project.artifactId} + API 服务网关,基于 Spring Cloud Gateway 实现 + https://github.com/YunaiV/yudao-cloud + + + + + org.springframework.cloud + spring-cloud-starter-gateway + + + + diff --git a/yudao-gateway/src/main/java/cn/iocoder/yudao/gateway/YudaoGatewayApplication.java b/yudao-gateway/src/main/java/cn/iocoder/yudao/gateway/YudaoGatewayApplication.java new file mode 100644 index 00000000..ef9e8e4b --- /dev/null +++ b/yudao-gateway/src/main/java/cn/iocoder/yudao/gateway/YudaoGatewayApplication.java @@ -0,0 +1,13 @@ +package cn.iocoder.yudao.gateway; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class YudaoGatewayApplication { + + public static void main(String[] args) { + SpringApplication.run(YudaoGatewayApplication.class, args); + } + +} diff --git a/yudao-gateway/src/main/resources/application.yaml b/yudao-gateway/src/main/resources/application.yaml new file mode 100644 index 00000000..621e89d3 --- /dev/null +++ b/yudao-gateway/src/main/resources/application.yaml @@ -0,0 +1,21 @@ +server: + port: 8888 + +spring: + cloud: + # Spring Cloud Gateway 配置项,对应 GatewayProperties 类 + gateway: + # 路由配置项,对应 RouteDefinition 数组 + routes: + - id: yudaoyuanma # 路由的编号 + uri: https://www.iocoder.cn # 路由到的目标地址 + predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组 + - Path=/blog + filters: + - StripPrefix=1 + - id: oschina # 路由的编号 + uri: https://www.oschina.net # 路由的目标地址 + predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组 + - Path=/oschina + filters: # 过滤器,对请求进行拦截,实现自定义的功能,对应 FilterDefinition 数组 + - StripPrefix=1