refactor: reject legacy jt808 mileage state store
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user