亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

報錯無法生成數據庫

?:: Spring Boot ::??????? (v1.5.3.RELEASE)

2017-05-04 11:22:54.957? INFO 6164 --- [?????????? main] com.example.GirlApplication????????????? : Starting GirlApplication on GOAFJLQVOL9HVXB with PID 6164 (E:\girl\target\classes started by Administrator in E:\girl)
2017-05-04 11:22:54.959? INFO 6164 --- [?????????? main] com.example.GirlApplication????????????? : The following profiles are active: dev
2017-05-04 11:22:55.155? INFO 6164 --- [?????????? main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6b4a4e18: startup date [Thu May 04 11:22:55 CST 2017]; root of context hierarchy
2017-05-04 11:22:56.182? INFO 6164 --- [?????????? main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2017-05-04 11:22:56.189? INFO 6164 --- [?????????? main] o.apache.catalina.core.StandardService?? : Starting service Tomcat
2017-05-04 11:22:56.190? INFO 6164 --- [?????????? main] org.apache.catalina.core.StandardEngine? : Starting Servlet Engine: Apache Tomcat/8.5.14
2017-05-04 11:22:56.253? INFO 6164 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]?????? : Initializing Spring embedded WebApplicationContext
2017-05-04 11:22:56.254? INFO 6164 --- [ost-startStop-1] o.s.web.context.ContextLoader??????????? : Root WebApplicationContext: initialization completed in 1102 ms
2017-05-04 11:22:56.350? INFO 6164 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean? : Mapping servlet: 'dispatcherServlet' to [/]
2017-05-04 11:22:56.353? INFO 6164 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean?? : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-05-04 11:22:56.353? INFO 6164 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean?? : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-05-04 11:22:56.353? INFO 6164 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean?? : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-05-04 11:22:56.353? INFO 6164 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean?? : Mapping filter: 'requestContextFilter' to: [/*]
2017-05-04 11:22:56.381? WARN 6164 --- [?????????? main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (the profiles "dev" are currently active).
2017-05-04 11:22:56.383? INFO 6164 --- [?????????? main] o.apache.catalina.core.StandardService?? : Stopping service Tomcat
2017-05-04 11:22:56.397? INFO 6164 --- [?????????? main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-05-04 11:22:56.404 ERROR 6164 --- [?????????? main] o.s.b.d.LoggingFailureAnalysisReporter?? :

***************************
APPLICATION FAILED TO START
***************************

Description:

Cannot determine embedded database driver class for database type NONE

Action:

If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (the profiles "dev" are currently active).


Process finished with exit code 1

正在回答

11 回答

是按照新配置這樣寫的,一樣要報錯

0 回復 有任何疑惑可以回復我~

已解決

原配置和錯誤信息:

http://img1.sycdn.imooc.com//5a12ea480001391407280542.jpg

新配置及結果:

http://img1.sycdn.imooc.com//5a12ea9b0001201c09080541.jpg

數據庫信息:

http://img1.sycdn.imooc.com//5a12ead0000106f605380302.jpg


0 回復 有任何疑惑可以回復我~

配置文件spring是小寫的

0 回復 有任何疑惑可以回復我~

有人解決這個問題了嗎?關注中

0 回復 有任何疑惑可以回復我~

lz的這個問題怎么解決啊,求方法

0 回復 有任何疑惑可以回復我~

http://static.mukewang.com/img/59ad3ec7000153bc14400900.jpg那兩個依賴我加了,為啥這個報錯呢

0 回復 有任何疑惑可以回復我~

這個怎么搞到的 有解決到的大神嗎 告訴一下怎么弄的


0 回復 有任何疑惑可以回復我~

我也爆了這個錯,但是沒看見dhcp啊,這個實在哪里?

0 回復 有任何疑惑可以回復我~

上面的配置是對的 我看老師里面有dhcp 其實是不要才行

0 回復 有任何疑惑可以回復我~

我的也是那樣錯誤,不是上面說的配置問題

0 回復 有任何疑惑可以回復我~
首頁上一頁12下一頁尾頁

舉報

0/150
提交
取消
2小時學會Spring Boot
  • 參與學習       151526    人
  • 解答問題       1132    個

Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序

進入課程

報錯無法生成數據庫

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號