wip: 重构临时提交

This commit is contained in:
Ray.Hao 2024-07-12 19:24:03 +08:00
parent ed51889870
commit 8ce4ff03a1
42 changed files with 295 additions and 182 deletions

View File

@ -12,27 +12,19 @@
<artifactId>member-api</artifactId>
<dependencies>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-core</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-core</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-web</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@ -48,11 +48,6 @@
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-web</artifactId>
@ -60,7 +55,7 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
<artifactId>common-mybatis</artifactId>
</dependency>
<dependency>
@ -70,12 +65,17 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-seata</artifactId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-rabbitmq</artifactId>
<artifactId>common-middleware-seata</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-rabbitmq</artifactId>
</dependency>
<dependency>

View File

@ -6,9 +6,14 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* 会员服务启动类
*
* @author ray
*/
@SpringBootApplication
@EnableDiscoveryClient()
@EnableFeignClients(basePackageClasses = { SkuFeignClient.class})
@EnableFeignClients(basePackageClasses = {SkuFeignClient.class})
public class MemberApplication {
public static void main(String[] args) {
SpringApplication.run(MemberApplication.class, args);

View File

@ -73,16 +73,6 @@
<artifactId>common-web</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-rabbitmq</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-security</artifactId>
@ -90,7 +80,12 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-seata</artifactId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-seata</artifactId>
</dependency>
</dependencies>

View File

@ -7,9 +7,14 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* 订单服务启动类
*
* @author ray
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackageClasses = { MemberFeignClient.class, SkuFeignClient.class})
@EnableFeignClients(basePackageClasses = {MemberFeignClient.class, SkuFeignClient.class})
public class OrderApplication {
public static void main(String[] args) {

View File

@ -24,12 +24,6 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>

View File

@ -62,11 +62,6 @@
<artifactId>member-api</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-web</artifactId>
@ -74,12 +69,7 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-rabbitmq</artifactId>
<artifactId>common-mybatis</artifactId>
</dependency>
<dependency>
@ -89,7 +79,17 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-seata</artifactId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-rabbitmq</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-seata</artifactId>
</dependency>
</dependencies>

View File

@ -68,11 +68,6 @@
<artifactId>common-web</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-security</artifactId>

View File

@ -7,10 +7,9 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* 优惠营销系统
* 秒杀功能开发
* 1管理员端开发秒杀活动管理界面创建秒杀活动场次建立秒杀活动场次与商品关联
* 2秒杀预热采用 异步+定时 将秒杀数据提前同步到redis中
* 营销服务启动类
*
* @author ray
*/
@SpringBootApplication
@EnableDiscoveryClient

46
pom.xml
View File

@ -164,24 +164,6 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-mybatis</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-rabbitmq</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-web</artifactId>
@ -196,13 +178,37 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-seata</artifactId>
<artifactId>common-mybatis</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-sms</artifactId>
<artifactId>common-middleware-rabbitmq</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-redis</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-seata</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-thirdparty-sms</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-thirdparty-oss</artifactId>
<version>${project.version}</version>
</dependency>

View File

@ -48,6 +48,17 @@
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-miniapp</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>member-api</artifactId>
@ -58,11 +69,6 @@
<artifactId>system-api</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-web</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-core</artifactId>
@ -70,12 +76,7 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-miniapp</artifactId>
<artifactId>common-web</artifactId>
</dependency>
<dependency>
@ -85,13 +86,12 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-sms</artifactId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<groupId>com.youlai</groupId>
<artifactId>common-thirdparty-sms</artifactId>
</dependency>
</dependencies>

View File

@ -7,6 +7,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* 认证服务启动类
*
* @author ray
*/
@EnableFeignClients(basePackageClasses = {UserFeignClient.class, MemberFeignClient.class})
@SpringBootApplication
@EnableDiscoveryClient

View File

@ -2,14 +2,20 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>youlai-common</artifactId>
<groupId>com.youlai</groupId>
<artifactId>common-middleware</artifactId>
<version>3.2.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common-rabbitmq</artifactId>
<artifactId>common-middleware-rabbitmq</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>

View File

@ -2,14 +2,20 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>youlai-common</artifactId>
<groupId>com.youlai</groupId>
<artifactId>common-middleware</artifactId>
<version>3.2.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common-redis</artifactId>
<artifactId>common-middleware-redis</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
@ -50,4 +56,5 @@
</dependency>
</dependencies>
</project>

View File

@ -1,4 +1,4 @@
package com.youlai.common.redis;
package com.youlai.common.redis.config;
import org.springframework.boot.autoconfigure.cache.CacheProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

View File

@ -1,4 +1,4 @@
package com.youlai.common.redis;
package com.youlai.common.redis.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -0,0 +1,2 @@
com.youlai.common.redis.config.RedisCacheConfig
com.youlai.common.redis.config.RedisConfig

View File

@ -2,14 +2,14 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>youlai-common</artifactId>
<groupId>com.youlai</groupId>
<artifactId>common-middleware</artifactId>
<version>3.2.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common-seata</artifactId>
<artifactId>common-middleware-seata</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
@ -29,4 +29,5 @@
</exclusions>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,26 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.youlai</groupId>
<artifactId>youlai-common</artifactId>
<version>3.2.1</version>
</parent>
<artifactId>common-middleware</artifactId>
<packaging>pom</packaging>
<modules>
<module>common-middleware-redis</module>
<module>common-middleware-seata</module>
<module>common-middleware-rabbitmq</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -1,2 +0,0 @@
com.youlai.common.redis.RedisCacheConfig
com.youlai.common.redis.RedisConfig

View File

@ -30,7 +30,8 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
<artifactId>common-middleware-redis</artifactId>
<optional>true</optional>
</dependency>
<dependency>

View File

@ -0,0 +1,45 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.youlai</groupId>
<artifactId>common-thirdparty</artifactId>
<version>3.2.1</version>
</parent>
<artifactId>common-thirdparty-oss</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<optional>true</optional>
</dependency>
<!-- 分布式对象存储 -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,8 +1,15 @@
package com.youlai.system.model.vo;
package com.youlai.common.oss.model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 文件对象
*
* @author ray
* @since 1.0.0
*/
@Schema(description = "文件对象")
@Data
public class FileInfo {

View File

@ -1,6 +1,7 @@
package com.youlai.system.service;
package com.youlai.common.oss.service;
import com.youlai.system.model.vo.FileInfo;
import com.youlai.common.oss.model.FileInfo;
import org.springframework.web.multipart.MultipartFile;
/**

View File

@ -1,4 +1,4 @@
package com.youlai.system.service.impl.oss;
package com.youlai.common.oss.service.impl;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.io.FileUtil;
@ -8,8 +8,8 @@ import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.model.ObjectMetadata;
import com.aliyun.oss.model.PutObjectRequest;
import com.youlai.system.model.vo.FileInfo;
import com.youlai.system.service.OssService;
import com.youlai.common.oss.model.FileInfo;
import com.youlai.common.oss.service.OssService;
import jakarta.annotation.PostConstruct;
import lombok.Data;
import lombok.RequiredArgsConstructor;
@ -90,8 +90,10 @@ public class AliyunOssService implements OssService {
@Override
public boolean deleteFile(String filePath) {
Assert.notBlank(filePath, "删除文件路径不能为空");
String fileHost = "https://" + bucketName + "." + endpoint; // 文件主机域名
String fileName = filePath.substring(fileHost.length() + 1); // +1 /占一个字符截断左闭右开
// 文件主机域名
String fileHost = "https://" + bucketName + "." + endpoint;
// +1 /占一个字符截断左闭右开
String fileName = filePath.substring(fileHost.length() + 1);
aliyunOssClient.deleteObject(bucketName, fileName);
return true;
}

View File

@ -1,12 +1,12 @@
package com.youlai.system.service.impl.oss;
package com.youlai.common.oss.service.impl;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;
import com.youlai.system.model.vo.FileInfo;
import com.youlai.system.service.OssService;
import com.youlai.common.oss.model.FileInfo;
import com.youlai.common.oss.service.OssService;
import io.minio.*;
import io.minio.errors.*;
import io.minio.http.Method;
@ -132,8 +132,8 @@ public class MinioOssService implements OssService {
try {
String fileName;
if (StrUtil.isNotBlank(customDomain)) {
// https://oss.youlai.tech/default/20221120/test.jpg 20221120/test.jpg
fileName = filePath.substring(customDomain.length() + 1 + bucketName.length() + 1); // 两个/占了2个字符长度
// https://oss.youlai.tech/default/20221120/test.jpg 20221120/test.jpg // 两个/占了2个字符长度
fileName = filePath.substring(customDomain.length() + 1 + bucketName.length() + 1);
} else {
// http://localhost:9000/default/20221120/test.jpg 20221120/test.jpg
fileName = filePath.substring(endpoint.length() + 1 + bucketName.length() + 1);
@ -156,17 +156,15 @@ public class MinioOssService implements OssService {
/**
* PUBLIC桶策略
* 如果不配置则新建的存储桶默认是PRIVATE则存储桶文件会拒绝访问 Access Denied
* AWS的S3存储桶策略
* Principal: 生效用户对象
* Resource: 指定存储桶
* Action: 操作行为
*
* @param bucketName
* @return
*/
private static String publicBucketPolicy(String bucketName) {
/**
* AWS的S3存储桶策略
* Principal: 生效用户对象
* Resource: 指定存储桶
* Action: 操作行为
*/
return "{\"Version\":\"2012-10-17\","
+ "\"Statement\":[{\"Effect\":\"Allow\","
@ -181,7 +179,7 @@ public class MinioOssService implements OssService {
/**
* 创建存储桶(存储桶不存在)
*
* @param bucketName
* @param bucketName 存储桶名称
*/
@SneakyThrows
private void createBucketIfAbsent(String bucketName) {

View File

@ -0,0 +1,2 @@
com.youlai.common.oss.service.impl.AliyunOssService
com.youlai.common.oss.service.impl.MinioOssService

View File

@ -2,20 +2,21 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>youlai-common</artifactId>
<groupId>com.youlai</groupId>
<artifactId>common-thirdparty</artifactId>
<version>3.2.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common-sms</artifactId>
<artifactId>common-thirdparty-sms</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.youlai</groupId>
@ -25,7 +26,7 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
<artifactId>common-middleware-redis</artifactId>
<optional>true</optional>
</dependency>
@ -42,5 +43,4 @@
</dependency>
</dependencies>
</project>

View File

@ -1,4 +1,4 @@
package com.youlai.common.sms.property;
package com.youlai.common.sms.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

View File

@ -8,7 +8,7 @@ import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;
import com.youlai.common.sms.property.AliyunSmsProperties;
import com.youlai.common.sms.config.AliyunSmsProperties;
import com.youlai.common.sms.service.SmsService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@ -1,2 +1,2 @@
com.youlai.common.sms.property.AliyunSmsProperties
com.youlai.common.sms.config.AliyunSmsProperties
com.youlai.common.sms.service.impl.AliyunSmsService

25
youlai-common/common-thirdparty/pom.xml vendored Normal file
View File

@ -0,0 +1,25 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.youlai</groupId>
<artifactId>youlai-common</artifactId>
<version>3.2.1</version>
</parent>
<artifactId>common-thirdparty</artifactId>
<packaging>pom</packaging>
<modules>
<module>common-thirdparty-sms</module>
<module>common-thirdparty-oss</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -13,16 +13,6 @@
<dependencies>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-core</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
@ -59,6 +49,16 @@
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-core</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-security</artifactId>

View File

@ -15,12 +15,10 @@
<modules>
<module>common-core</module>
<module>common-redis</module>
<module>common-web</module>
<module>common-mybatis</module>
<module>common-rabbitmq</module>
<module>common-security</module>
<module>common-seata</module>
<module>common-sms</module>
<module>common-thirdparty</module>
<module>common-middleware</module>
</modules>
</project>

View File

@ -80,7 +80,6 @@
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<!-- 公共依赖 -->
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-core</artifactId>
@ -88,7 +87,7 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
</dependencies>

View File

@ -4,6 +4,11 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* 网关服务启动类
*
* @author ray
*/
@SpringBootApplication
@EnableDiscoveryClient
public class GatewayApplication {

View File

@ -18,6 +18,13 @@
<dependencies>
<!-- 单元测试 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- Spring Cloud & Alibaba -->
<dependency>
<groupId>org.springframework.cloud</groupId>
@ -59,17 +66,6 @@
<artifactId>sentinel-datasource-nacos</artifactId>
</dependency>
<!-- 分布式对象存储 -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
@ -80,21 +76,11 @@
<artifactId>system-api</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-rabbitmq</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-security</artifactId>
@ -102,14 +88,17 @@
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-sms</artifactId>
<artifactId>common-middleware-redis</artifactId>
</dependency>
<!-- 单元测试 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<groupId>com.youlai</groupId>
<artifactId>common-middleware-rabbitmq</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-thirdparty-sms</artifactId>
</dependency>
</dependencies>

View File

@ -4,6 +4,11 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* 系统服务启动类
*
* @author ray
*/
@SpringBootApplication
@EnableDiscoveryClient
public class SystemApplication {