为了账号安全,请及时绑定邮箱和手机立即绑定

关于intellij idea 问题 求各位吊大 大神帮忙

/ 猿问

关于intellij idea 问题 求各位吊大 大神帮忙

慕粉2228388982 2018-07-24 16:06:28

 https://img3.mukewang.com/5b56e66e00010a1e13660768.jpg

报错 是因为什么呢  打印spring boot

java.lang.Object.wait(Native Method)

 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)

 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)

2018-07-24 15:58:43.126  INFO 7888 --- [           main] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2018-07-24 15:58:43.151 ERROR 7888 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

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



Process finished with exit code 1


查看完整描述

2 回答

?
狼族老K

空跑项目的话把pom文件里mybatis的配置注掉试试

查看完整回答
1 反对 回复 2018-07-27
?
楠宝宝_


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

你可以看你的application.yml(property)数据库配置正确不正确是否正确链接

查看完整回答
反对 回复 2018-07-25
  • 慕粉2228388982
    慕粉2228388982
    额 数据库解决了 但是 其他还是 报错 ava.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
  • Jadan_Z
    Jadan_Z
    解决了吗
  • qq_流浪_11
    qq_流浪_11
    org.mybatis.spring.boot 注释掉 然后点import change

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信