//排除掉数据库类的自动配置 @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) @EnableEurekaClient public class FileApplication { public static void main(String[] args) { SpringApplication.run(FileApplication.class, args); } }