***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
原因:
我的笔记本的idea版本是2018,台式机上的是2017,所以找原因找了很长时间网上所说的给public class Application {……}加下面的注解:
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableAutoConfiguration(exclude={DruidDataSourceAutoConfigure.class})
都不管用,因此怀疑是idea版本所致,台式机更新到idea2018之后,再导入项目,正常了!