feat: MariaDB

This commit is contained in:
server_main
2026-07-08 11:05:10 +00:00
parent 066fbf8a22
commit 43d171b6bc
3 changed files with 22 additions and 5 deletions
+17
View File
@@ -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>
+1 -1
View File
@@ -36,7 +36,7 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions") implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("tools.jackson.module:jackson-module-kotlin") 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-test")
testImplementation("org.springframework.boot:spring-boot-starter-security-test") testImplementation("org.springframework.boot:spring-boot-starter-security-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5") testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
@@ -29,10 +29,10 @@ spring:
expire-hours: 168 expire-hours: 168
datasource: datasource:
url: jdbc:mysql://localhost:3306/kotlin_springboot url: jdbc:mariadb://localhost:3306/kotlin_springboot
driver-class-name: org.mariadb.jdbc.Driver
username: root username: root
#password: 123456 password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus: mybatis-plus:
type-handlers-package: com.github.sor2171.backend.config type-handlers-package: com.github.sor2171.backend.config