chore: fix active identity store to mysql

This commit is contained in:
lingniu
2026-07-01 14:51:46 +08:00
parent 3795e43a6a
commit 90791d28bd
12 changed files with 18 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ lingniu:
store: redis
ttl: ${SESSION_TTL:30m}
identity:
store: ${VEHICLE_IDENTITY_STORE:mysql}
store: mysql
mysql:
jdbc-url: ${VEHICLE_IDENTITY_MYSQL_JDBC_URL:jdbc:mysql://127.0.0.1:3306/lingniu_vehicle?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai}
username: ${VEHICLE_IDENTITY_MYSQL_USERNAME:root}

View File

@@ -47,7 +47,7 @@ class Gb32960IngestAppDefaultsTest {
.containsEntry("lingniu.ingest.sink.archive.enabled", "${SINK_ARCHIVE_ENABLED:true}")
.containsEntry("lingniu.ingest.sink.archive.path", "${SINK_ARCHIVE_PATH:./archive/}")
.containsEntry("lingniu.ingest.session.store", "redis")
.containsEntry("lingniu.ingest.identity.store", "${VEHICLE_IDENTITY_STORE:mysql}")
.containsEntry("lingniu.ingest.identity.store", "mysql")
.containsEntry("lingniu.ingest.identity.mysql.table-name",
"${VEHICLE_IDENTITY_MYSQL_TABLE:vehicle_identity_bindings}")
.containsEntry("management.endpoints.web.exposure.include",
@@ -68,7 +68,8 @@ class Gb32960IngestAppDefaultsTest {
assertThat(applicationYaml())
.contains("password: ${GB32960_PLATFORM_PWD_HYUNDAI:}")
.contains("password: ${GB32960_PLATFORM_PWD_YUEJIN:}")
.doesNotContain("SESSION_STORE");
.doesNotContain("SESSION_STORE")
.doesNotContain("VEHICLE_IDENTITY_STORE");
}
private static Properties applicationProperties() {