APPLICATION FAILED TO START启动报错解决

***************************
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 suitable jdbc url


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).


Process finished with exit code 1

菜鸟一枚,启动过程中启动一下就立马中断,找了半天的原因是:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

解决办法:

在pom.xml里有其他的依赖影响


<dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.2.0</version>
</dependency>

mybatis依赖删掉再重新运行就好了

上一篇:android 打包报错 Execution failed for task ‘:app:lintVitalRelease‘.


下一篇:wordpress提示Updating failed. The response is not a valid JSON response如何解决