tomsun28 commented on PR #2236:
URL: https://github.com/apache/hertzbeat/pull/2236#issuecomment-2212473127

   ```
   @Service("SparkDeskAiServiceImpl")
   @Slf4j
   public class SparkDeskAiServiceImpl implements AiService {
   ```
   you can try to use `@ConditionalOnProperty` to decide whether to initialize 
the bean, refer the `warehouse`
   
   ```
   @Component
   @ConditionalOnProperty(prefix = "warehouse.store.iot-db", name = "enabled", 
havingValue = "true")
   @Slf4j
   public class IotDbDataStorage extends AbstractHistoryDataStorage {
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to