diff --git a/src/main/java/run/halo/app/listener/StartedListener.java b/src/main/java/run/halo/app/listener/StartedListener.java index c8cda9b82..613b09b5f 100644 --- a/src/main/java/run/halo/app/listener/StartedListener.java +++ b/src/main/java/run/halo/app/listener/StartedListener.java @@ -1,7 +1,9 @@ package run.halo.app.listener; import lombok.extern.slf4j.Slf4j; +import org.flywaydb.core.Flyway; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.event.ApplicationStartedEvent; import org.springframework.context.ApplicationListener; import org.springframework.context.annotation.Configuration; @@ -14,7 +16,6 @@ import run.halo.app.config.properties.HaloProperties; import run.halo.app.model.properties.PrimaryProperties; import run.halo.app.service.OptionService; import run.halo.app.service.ThemeService; -import run.halo.app.service.UserService; import run.halo.app.utils.FileUtils; import java.io.IOException; @@ -43,13 +44,20 @@ public class StartedListener implements ApplicationListener