Hope this works
This commit is contained in:
@@ -2,6 +2,7 @@ import be.naaturel.boardmateapi.common.helpers.Logger;
|
||||
import be.naaturel.boardmateapi.services.MqttService;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
import org.springframework.boot.context.event.ApplicationReadyEvent;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.event.EventListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -16,7 +17,7 @@ public class MqttStarter {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
@EventListener(ApplicationReadyEvent.class)
|
||||
@Bean
|
||||
public void start(){
|
||||
try {
|
||||
setCallback();
|
||||
|
||||
Reference in New Issue
Block a user