refactor: reject legacy jt808 mileage state store

This commit is contained in:
lingniu
2026-07-01 08:32:51 +08:00
parent a08a132a3a
commit f80c47df0f
2 changed files with 12 additions and 5 deletions

View File

@@ -28,6 +28,13 @@ import java.time.ZoneId;
@ConditionalOnProperty(prefix = "lingniu.ingest.vehicle-stat", name = "enabled", havingValue = "true")
public class VehicleStatAutoConfiguration {
@Bean
@ConditionalOnProperty(prefix = "lingniu.ingest.vehicle-stat.jt808", name = "state-store")
public Object rejectedLegacyJt808MileageStateStore() {
throw new IllegalStateException(
"vehicle-stat.jt808.state-store has been removed; JT808 daily mileage uses vehicle_stat_metric only");
}
@Bean
@ConditionalOnBean(JdbcTemplate.class)
@ConditionalOnMissingBean