idea创建spring项目所遇问题

idea创建spring boot基本分为两种办法:

问题一:java.lang.NoClassDefFoundError: ch/qos/logback/core/spi/LifeCycle

 问题二:Failed to configure a DataSource: 'url' attribute is not specified and no embedde

在Application.java中添加@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)即可。

posted @ 2018-11-19 09:29  029黄甲栋  阅读(381)  评论(0编辑  收藏  举报