不知道怎么解決 這個(gè)問(wèn)題
?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
2018-09-12
還有一個(gè)就是如果你是按照視頻敲的代碼,開始勾選了mybatis,而你在pom.xml里沒(méi)有注釋掉,就用上邊的那個(gè)方法配置數(shù)據(jù)庫(kù)。但是如果你沒(méi)有注釋掉pom.xml里面的mybatis,注釋掉之后新建hello類,就可以運(yùn)行了
2018-09-12
配置src\main\resources\application.properties
2018-09-12
我也是這個(gè)問(wèn)題,用了樓上的方法還是沒(méi)用
2018-07-24