diff --git a/bonus-modules/base/pom.xml b/bonus-modules/base/pom.xml new file mode 100644 index 0000000..8a089cf --- /dev/null +++ b/bonus-modules/base/pom.xml @@ -0,0 +1,134 @@ + + + 4.0.0 + + com.bonus + bonus + 24.10.0-SNAPSHOT + ../../pom.xml + + + com.bonus + base + + + bonus-modules-base基础模块 + + + + + + + + + + + + com.github.ulisesbocchio + jasypt-spring-boot-starter + ${jasypt-spring-boot-starter.version} + + + + 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 + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + com.mysql + mysql-connector-j + + + + + com.bonus + bonus-common-datasource + + + + + com.bonus + bonus-common-datascope + + + + + com.bonus + bonus-common-log + + + + + com.bonus + bonus-common-swagger + + + com.google.guava + guava + 30.0-jre + compile + + + + org.springframework.boot + spring-boot-starter-mail + + + com.bonus + bonus-common-biz + 24.10.0-SNAPSHOT + compile + + + junit + junit + test + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + \ No newline at end of file diff --git a/bonus-modules/base/src/main/java/com/bonus/base/BaseApplication.java b/bonus-modules/base/src/main/java/com/bonus/base/BaseApplication.java new file mode 100644 index 0000000..c305944 --- /dev/null +++ b/bonus-modules/base/src/main/java/com/bonus/base/BaseApplication.java @@ -0,0 +1,35 @@ +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 bonus + */ +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableRyFeignClients +@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) +public class BaseApplication +{ + public static void main(String[] args) + { + SpringApplication.run(BaseApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ 基础模块启动成功 ლ(´ڡ`ლ)゙ \n" + + " .-------. ____ __ \n" + + " | _ _ \\ \\ \\ / / \n" + + " | ( ' ) | \\ _. / ' \n" + + " |(_ o _) / _( )_ .' \n" + + " | (_,_).' __ ___(_ o _)' \n" + + " | |\\ \\ | || |(_,_)' \n" + + " | | \\ `' /| `-' / \n" + + " | | \\ / \\ / \n" + + " ''-' `'-' `-..-' "); + } +} diff --git a/pom.xml b/pom.xml index 043f912..a4b8f35 100644 --- a/pom.xml +++ b/pom.xml @@ -246,6 +246,7 @@ bonus-modules bonus-common-biz + bonus-modules/base pom