mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-01-05 17:13:28 +09:00
#67 declouped the basePackageScanning from the schedulerConfig
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package it.fabioformosa.quartzmanager.api.configuration;
|
||||
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@ComponentScan(basePackages = {"it.fabioformosa.quartzmanager.api"})
|
||||
@Configuration
|
||||
public class QuartzManagerApiConfig {
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package it.fabioformosa.quartzmanager.api.configuration;
|
||||
|
||||
import it.fabioformosa.quartzmanager.api.scheduler.AutowiringSpringBeanJobFactory;
|
||||
import it.fabioformosa.quartzmanager.api.common.properties.QuartzModuleProperties;
|
||||
import it.fabioformosa.quartzmanager.api.scheduler.AutowiringSpringBeanJobFactory;
|
||||
import org.quartz.spi.JobFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.config.PropertiesFactoryBean;
|
||||
@@ -9,7 +9,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnResource;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
|
||||
@@ -18,7 +17,6 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
@ComponentScan(basePackages = {"it.fabioformosa.quartzmanager.api"})
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "quartz.enabled", matchIfMissing = true)
|
||||
public class SchedulerConfig {
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
it.fabioformosa.quartzmanager.api.configuration.SchedulerConfig,\
|
||||
it.fabioformosa.quartzmanager.api.configuration.OpenApiConfig,\
|
||||
it.fabioformosa.quartzmanager.api.configuration.WebsocketConfig
|
||||
it.fabioformosa.quartzmanager.api.configuration.QuartzManagerApiConfig
|
||||
|
||||
Reference in New Issue
Block a user