第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

不知道怎么解決 這個(gè)問(wèn)題

https://img1.sycdn.imooc.com//5b56e9ff00010a1e13660768.jpg?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


正在回答

4 回答

還有一個(gè)就是如果你是按照視頻敲的代碼,開始勾選了mybatis,而你在pom.xml里沒(méi)有注釋掉,就用上邊的那個(gè)方法配置數(shù)據(jù)庫(kù)。但是如果你沒(méi)有注釋掉pom.xml里面的mybatis,注釋掉之后新建hello類,就可以運(yùn)行了


0 回復(fù) 有任何疑惑可以回復(fù)我~

配置src\main\resources\application.properties

spring.datasource.url=jdbc:mysql\://192.168.0.20\:1504/f_me?setUnicode=true&characterEncoding=utf8
spring.datasource.username=******
spring.datasource.password=******


0 回復(fù) 有任何疑惑可以回復(fù)我~

我也是這個(gè)問(wèn)題,用了樓上的方法還是沒(méi)用

0 回復(fù) 有任何疑惑可以回復(fù)我~
因?yàn)檫€沒(méi)有配置數(shù)據(jù)源
在@SpringBootApplication?注解后?添加?exclude?=?DataSourceAutoConfiguration.class?再運(yùn)行


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

不知道怎么解決 這個(gè)問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)