四月份有什么节日,慢慢游,武义新闻网
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).
process finished with exit code 1
原因: 配置的注解需要连接数据库,一个解决方式是添加
排除,代码如下:经测试,我的是需要去掉依赖
<dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-data-jpa</artifactid> </dependency>
手动删除它所生成的项目的jar包,重编译,然后就可以正常启动。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
如何在java 8 stream表达式实现if/else逻辑
Java中有界队列的饱和策略(reject policy)原理解析
网友评论