feat: MariaDB
This commit is contained in:
Generated
+17
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="root@localhost" uuid="c13cb29f-8398-41b6-a24b-5cf0642c9759">
|
||||
<driver-ref>mariadb</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mariadb://localhost:3306</jdbc-url>
|
||||
<jdbc-additional-properties>
|
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
@@ -36,7 +36,7 @@ dependencies {
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
|
||||
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
|
||||
implementation("tools.jackson.module:jackson-module-kotlin")
|
||||
runtimeOnly("com.mysql:mysql-connector-j")
|
||||
runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
|
||||
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
||||
|
||||
@@ -27,12 +27,12 @@ spring:
|
||||
jwt:
|
||||
key: 6846513216
|
||||
expire-hours: 168
|
||||
|
||||
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/kotlin_springboot
|
||||
url: jdbc:mariadb://localhost:3306/kotlin_springboot
|
||||
driver-class-name: org.mariadb.jdbc.Driver
|
||||
username: root
|
||||
#password: 123456
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
password: 123456
|
||||
|
||||
mybatis-plus:
|
||||
type-handlers-package: com.github.sor2171.backend.config
|
||||
|
||||
Reference in New Issue
Block a user