c2-runtimex

启动类配置

如果不需要使用数据库的话,exclude其实也可以不用配置

1
2
3
4
5
6
7
8
@SpringBootApplication(exclude = {DynamicDataSourceAutoConfiguration.class})
@EnableC2Runtime
public class Main {
public static void main(String[] args) {
SpringApplication springBootApplication = new SpringApplication(Main.class);
springBootApplication.run(args);
}
}