commit e14e0ae0fc959aef5a4fc3e3213f0bd1672a5899 Author: mashuai Date: Fri Sep 6 16:58:47 2024 +0800 1 diff --git a/bonus-modules/bonus-base/pom.xml b/bonus-modules/bonus-base/pom.xml new file mode 100644 index 0000000..21855ae --- /dev/null +++ b/bonus-modules/bonus-base/pom.xml @@ -0,0 +1,123 @@ + + + + com.bonus + bonus-modules + 24.8.0 + + 4.0.0 + + bonus-base + + + bonus-modules-base服务 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + + + com.mysql + mysql-connector-j + + + + + com.bonus + bonus-common-datasource + + + + com.bonus + bonus-common-core + + + + + com.bonus + bonus-common-datascope + + + com.bonus + bonus-common-swagger + + + com.bonus + bonus-common-log + + + + + com.bonus + bonus-common-log + + + + + com.bonus + bonus-common-swagger + + + com.google.guava + guava + 30.0-jre + compile + + + com.bonus + bonus-common-security + + + com.google.code.gson + gson + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + + \ No newline at end of file diff --git a/bonus-modules/bonus-base/src/main/java/com/bonus/base/BonusBaseApplication.java b/bonus-modules/bonus-base/src/main/java/com/bonus/base/BonusBaseApplication.java new file mode 100644 index 0000000..e5bbfc0 --- /dev/null +++ b/bonus-modules/bonus-base/src/main/java/com/bonus/base/BonusBaseApplication.java @@ -0,0 +1,32 @@ +package com.bonus.base; + +import com.bonus.common.security.annotation.EnableCustomConfig; +import com.bonus.common.security.annotation.EnableRyFeignClients; +import com.bonus.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; + +/** + * @Author ma_sh + * @create 2024/9/6 16:46 + */ +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableRyFeignClients +@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class }) +public class BonusBaseApplication { + public static void main(String[] args) { + SpringApplication.run(BonusBaseApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ bonus-base基础模块启动成功 ლ(´ڡ`ლ)゙ \n" + + " .-------. ____ __ \n" + + " | _ _ \\ \\ \\ / / \n" + + " | ( ' ) | \\ _. / ' \n" + + " |(_ o _) / _( )_ .' \n" + + " | (_,_).' __ ___(_ o _)' \n" + + " | |\\ \\ | || |(_,_)' \n" + + " | | \\ `' /| `-' / \n" + + " | | \\ / \\ / \n" + + " ''-' `'-' `-..-' "); + } +}