其他分享
首页 > 其他分享> > APPLICATION FAILED TO START启动报错解决

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依赖删掉再重新运行就好了

标签:embedded,START,url,attribute,no,APPLICATION,Failed,报错,mybatis
来源: https://blog.csdn.net/kai420085238/article/details/120314751