SpringBoot去除数据源

代码如下

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
public class Application {
public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}

 欢迎关注作者微信公众号

SpringBoot去除数据源

 

SpringBoot去除数据源

上一篇:Linux内核中dev_info、dev_dbg、dev_err及动态调试


下一篇:C++进阶