import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.context.annotation.PropertySource; @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) @PropertySource(value={"file:conf/application.properties"},encoding = "utf-8") public class XxlJobExecutorApplication { public static void main(String[] args) { SpringApplication.run(XxlJobExecutorApplication.class, args); } }
conf/application.properties