Failed to determine a suitable driver class

先看错误

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

解决

网上有很多解决文章,比如:
完美解决Failed to determine a suitable driver class的问题

然而,我其实之前是可以,突然间不行了。查看了git的历史,最近也就在profile里改了个port,为什么会影响到数据库连接呢?
在这里插入图片描述
没有任何头绪,万能大法,重启电脑都用了,还是不行。

于是我把profile里面除了数据库配置,其他行全部删了,当然也包括这个server.port=9091

神奇了,数据库不报错了。当然因为删了其他配置,其他报错了。 然后慢慢把配置都贴回去,贴完,就好了 。。。。。

总结

个人猜想是当时改这个port,这行语句也行字符有问题啥的,引起了编译器的bug。就这样吧。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

F_angT

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值