diff --git a/jc-club-auth/jc-club-auth-application/jc-club-auth-application-controller/pom.xml b/jc-club-auth/jc-club-auth-application/jc-club-auth-application-controller/pom.xml index 3161fc9..8b09fa0 100644 --- a/jc-club-auth/jc-club-auth-application/jc-club-auth-application-controller/pom.xml +++ b/jc-club-auth/jc-club-auth-application/jc-club-auth-application-controller/pom.xml @@ -14,15 +14,28 @@ http://maven.apache.org + 1.8 + 1.8 + 1.8 UTF-8 + UTF-8 - junit - junit - 3.8.1 - test + org.springframework.boot + spring-boot-starter-web + 2.4.2 + + + com.landaiqing + jc-club-auth-infra + 1.0-SNAPSHOT + + + com.landaiqing + jc-club-auth-domain + 1.0-SNAPSHOT diff --git a/jc-club-auth/jc-club-auth-common/pom.xml b/jc-club-auth/jc-club-auth-common/pom.xml index a675db0..e23b0cf 100644 --- a/jc-club-auth/jc-club-auth-common/pom.xml +++ b/jc-club-auth/jc-club-auth-common/pom.xml @@ -14,15 +14,49 @@ http://maven.apache.org + 1.8 + 1.8 + 1.8 UTF-8 + UTF-8 - junit - junit - 3.8.1 - test + org.projectlombok + lombok + 1.18.20 + + + org.mapstruct + mapstruct + 1.4.2.Final + + + org.mapstruct + mapstruct-processor + 1.4.2.Final + + + + org.springframework.boot + spring-boot-starter-log4j2 + 2.4.2 + + + com.alibaba + fastjson + 1.2.79 + + + com.google.guava + guava + 19.0 + + + org.apache.commons + commons-lang3 + 3.11 diff --git a/jc-club-auth/jc-club-auth-domain/pom.xml b/jc-club-auth/jc-club-auth-domain/pom.xml index 86f9eb6..3bac392 100644 --- a/jc-club-auth/jc-club-auth-domain/pom.xml +++ b/jc-club-auth/jc-club-auth-domain/pom.xml @@ -8,6 +8,18 @@ jc-club-auth-domain + + + + org.apache.maven.plugins + maven-compiler-plugin + + 8 + 8 + + + + jar jc-club-auth-domain @@ -19,10 +31,9 @@ - junit - junit - 3.8.1 - test + com.landaiqing + jc-club-auth-infra + 1.0-SNAPSHOT diff --git a/jc-club-auth/jc-club-auth-infra/pom.xml b/jc-club-auth/jc-club-auth-infra/pom.xml index 008f7d3..6f0bb33 100644 --- a/jc-club-auth/jc-club-auth-infra/pom.xml +++ b/jc-club-auth/jc-club-auth-infra/pom.xml @@ -14,15 +14,42 @@ http://maven.apache.org + 1.8 + 1.8 + 1.8 UTF-8 + UTF-8 + - junit - junit - 3.8.1 - test + org.springframework.boot + spring-boot-starter-jdbc + 2.4.2 + + + + com.alibaba + druid-spring-boot-starter + 1.1.21 + + + + mysql + mysql-connector-java + 8.0.33 + + + + com.baomidou + mybatis-plus-boot-starter + 3.4.0 + + + com.landaiqing + jc-club-auth-common + 1.0-SNAPSHOT diff --git a/jc-club-auth/jc-club-auth-starter/pom.xml b/jc-club-auth/jc-club-auth-starter/pom.xml index a13b84c..be2c759 100644 --- a/jc-club-auth/jc-club-auth-starter/pom.xml +++ b/jc-club-auth/jc-club-auth-starter/pom.xml @@ -14,15 +14,56 @@ http://maven.apache.org + 8 + 8 + 1.8 UTF-8 + UTF-8 + 2.4.2 + 2021.1 + 2020.0.6 - junit - junit - 3.8.1 - test + org.springframework.boot + spring-boot-starter-web + 2.4.2 + + + spring-boot-starter-logging + org.springframework.boot + + + + + com.landaiqing + jc-club-auth-application-controller + 1.0-SNAPSHOT + + + com.landaiqing + jc-club-auth-infra + 1.0-SNAPSHOT + + + ${project.artifactId} + + + + org.springframework.boot + spring-boot-maven-plugin + 2.3.0.RELEASE + + + + repackage + + + + + + diff --git a/jc-club-auth/jc-club-auth-starter/src/main/java/com/landaiqing/App.java b/jc-club-auth/jc-club-auth-starter/src/main/java/com/landaiqing/App.java deleted file mode 100644 index e623ea3..0000000 --- a/jc-club-auth/jc-club-auth-starter/src/main/java/com/landaiqing/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.landaiqing; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/jc-club-auth/jc-club-auth-starter/src/main/java/com/landaiqing/auth/AuthApplication.java b/jc-club-auth/jc-club-auth-starter/src/main/java/com/landaiqing/auth/AuthApplication.java new file mode 100644 index 0000000..5be93cf --- /dev/null +++ b/jc-club-auth/jc-club-auth-starter/src/main/java/com/landaiqing/auth/AuthApplication.java @@ -0,0 +1,21 @@ +package com.landaiqing.auth; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.ComponentScan; + +/** + * 刷题微服务启动类 + * + * @author: landaiqing + * @date: 2024/2/7 + */ +@SpringBootApplication +@ComponentScan("com.landaiqing") +@MapperScan("com.landaiqing.**.mapper") +public class AuthApplication { + public static void main(String[] args) { + SpringApplication.run(AuthApplication.class); + } +} diff --git a/jc-club-auth/jc-club-auth-starter/src/main/resources/application.yml b/jc-club-auth/jc-club-auth-starter/src/main/resources/application.yml new file mode 100644 index 0000000..d1c3570 --- /dev/null +++ b/jc-club-auth/jc-club-auth-starter/src/main/resources/application.yml @@ -0,0 +1,38 @@ +server: + port: 3001 +spring: + datasource: + username: landaiqing + password: iPHzskWvLGI2TrPw2AV7pu4C8O4bfxSSeQrkIqq0ZwM5tpBmx4aI6xN/8xjYgSmIir5v2Cv35Fn2732AypFKww== + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://116.196.80.239:3306/jc-club?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=true + type: com.alibaba.druid.pool.DruidDataSource + druid: + initial-size: 20 + min-idle: 20 + max-active: 100 + max-wait: 60000 + connectionProperties: config.decrypt=true;config.decrypt.key=${publicKey}; + stat-view-servlet: + enabled: true + url-pattern: /druid/* + login-username: admin + login-password: 123456 + filter: + stat: + enabled: true + slow-sql-millis: 2000 + log-slow-sql: true + wall: + enabled: true + config: + enabled: true +publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsYR+P7j9DehNkZaLxNeeoqU6ThCw3SNYCoPt1S7yeP1gEzpdS1cCQcz7/7OLQI/iFFjIJgXQDM2CA85yIomTMCAwEAAQ== +logging: + config: classpath:log4j2-spring.xml + +#mybatis-plus: +# configuration: +# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + + diff --git a/jc-club-auth/jc-club-auth-starter/src/main/resources/log4j2-spring.xml b/jc-club-auth/jc-club-auth-starter/src/main/resources/log4j2-spring.xml new file mode 100644 index 0000000..b45d532 --- /dev/null +++ b/jc-club-auth/jc-club-auth-starter/src/main/resources/log4j2-spring.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +