@PropertySource(value={"file:conf/application.properties"},encoding = "utf-8")

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

posted @ 2021-09-05 23:48  tonggc1668  阅读(240)  评论(0编辑  收藏  举报