File tree Expand file tree Collapse file tree
java/io/github/simpleauth0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ dependencyManagement {
6464 dependency libraries. springBootStarterMail
6565 dependency libraries. springBootConfigurationProcessor
6666 dependency libraries. springSecurityJose
67+ dependency libraries. springBootStarterJdbc
68+ dependency libraries. springBootStarterValidation
6769 dependency libraries. jacksonDatabind
6870 dependency libraries. jacksonKotlin
6971 dependency libraries. nimbusJoseJwt
@@ -74,6 +76,9 @@ dependencyManagement {
7476 dependency libraries. commonsIO
7577
7678 dependency libraries. mybatisPlus
79+ dependency libraries. mysql
80+ dependency libraries. flyway
81+ dependency libraries. flywayMysql
7782
7883 dependency libraries. opensaml
7984
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ versions.mybatisPlus = "3.5.3.1"
2020versions. mysql = " 8.0.33"
2121
2222versions. flyway = " 5.2.4"
23+ versions. flywayMysql = " 11.16.0"
2324
2425versions. jackson = " 2.17.0"
2526versions. guava = " 32.1.2-jre"
@@ -64,6 +65,7 @@ libraries.springBootStarterAop = "org.springframework.boot:spring-boot-starter-a
6465libraries. springBootStarterMail = " org.springframework.boot:spring-boot-starter-mail:${ versions.springBoot} "
6566libraries. springBootConfigurationProcessor = " org.springframework.boot:spring-boot-configuration-processor:${ versions.springBoot} "
6667libraries. springSecurityJose = " org.springframework.security:spring-security-oauth2-jose:${ versions.springSecurity} "
68+ libraries. springBootStarterValidation = " org.springframework.boot:spring-boot-starter-validation:${ versions.springBoot} "
6769libraries. springBootStarterTest = " org.springframework.boot:spring-boot-starter-test:${ versions.springBoot} "
6870
6971// openAPI
@@ -81,7 +83,7 @@ libraries.mysql = "com.mysql:mysql-connector-j:${versions.mysql}"
8183
8284// Flyway
8385libraries. flyway = " org.flywaydb:flyway-core:${ versions.flyway} "
84- libraries. flywayMysql = " org.flywaydb:flyway-mysql:${ versions.flyway } "
86+ libraries. flywayMysql = " org.flywaydb:flyway-mysql:${ versions.flywayMysql } "
8587
8688// Jackson / JSON
8789libraries. jacksonDatabind = " com.fasterxml.jackson.core:jackson-databind:${ versions.jackson} "
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ dependencies {
1111 implementation project(' :simpleauth0-audit' )
1212 implementation project(' :simpleauth0-openapi' )
1313 implementation libraries. springBootStarterWeb
14+ implementation libraries. springBootStarterJdbc
15+ implementation libraries. springBootStarterValidation
1416 implementation libraries. mybatisPlus
15-
17+ implementation libraries. mysql
18+ implementation libraries. flyway
19+ implementation libraries. flywayMysql
1620}
Original file line number Diff line number Diff line change 22
33import io .github .simpleauth0 .audit .configuration .EnableAuditLog ;
44import io .github .simpleauth0 .security .configuration .EnableAuthentication ;
5+ import org .mybatis .spring .annotation .MapperScan ;
56import org .springframework .boot .SpringApplication ;
67import org .springframework .boot .autoconfigure .SpringBootApplication ;
78
1213@ EnableAuditLog
1314@ EnableAuthentication
1415@ SpringBootApplication
16+ @ MapperScan (basePackages = "io.github.simpleauth0.repository.dao" )
1517public class SimpleAuth0ServerApplication {
1618
1719 public static void main (String [] args ) {
Original file line number Diff line number Diff line change 11server :
2- port : 9095
2+ port : ${SERVER_PORT:9095}
3+ servlet :
4+ context-path : /api/v1
5+
6+ spring :
7+ datasource :
8+ driver-class-name : com.mysql.cj.jdbc.Driver
9+ url : ${DATASOURCE_URL:jdbc:mysql://localhost:3306/simpleauth0?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai}
10+ username : ${DATASOURCE_USERNAME:root}
11+ password : ${DATASOURCE_PASSWORD:123456}
12+ hikari :
13+ minimum-idle : 5 # 最小空闲连接数
14+ maximum-pool-size : 20 # 最大连接池大小
15+ idle-timeout : 30000 # 连接空闲超时时间(毫秒)
16+ max-lifetime : 1800000 # 连接最大存活时间(毫秒)
17+ connection-timeout : 30000 # 获取连接的超时时间(毫秒)
18+ pool-name : SimpleAuth0kariCP # 连接池名称(可选)
19+ flyway :
20+ baseline-on-migrate : true
21+ baseline-description : <<Flyway Baseline>>
22+ enabled : true
23+ locations : classpath:db/migration
24+ validate-on-migrate : true
25+ fail-on-missing-locations : true
26+
27+
328simpleauth0 :
429 token :
530 opaque :
You can’t perform that action at this time.
0 commit comments