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

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

啟動springboot出現(xiàn)這個錯誤

??.???____??????????_????????????__?_?_
?/\\?/?___'_?__?_?_(_)_?__??__?_?\?\?\?\
(?(?)\___?|?'_?|?'_|?|?'_?\/?_`?|?\?\?\?\
?\\/??___)|?|_)|?|?|?|?|?||?(_|?|??)?)?)?)
??'??|____|?.__|_|?|_|_|?|_\__,?|?/?/?/?/
?=========|_|==============|___/=/_/_/_/
?::?Spring?Boot?::????????(v1.5.1.RELEASE)

2017-02-11?14:54:21.320??INFO?7020?---?[???????????main]?com.example.DemoGirlApplication??????????:?Starting?DemoGirlApplication?on?EC?with?PID?7020?(F:\eclipse_work\demo_girl\target\classes?started?by?EC_Troy?in?F:\eclipse_work\demo_girl)
2017-02-11?14:54:21.334??INFO?7020?---?[???????????main]?com.example.DemoGirlApplication??????????:?No?active?profile?set,?falling?back?to?default?profiles:?default
2017-02-11?14:54:21.680??INFO?7020?---?[???????????main]?ationConfigEmbeddedWebApplicationContext?:?Refreshing?org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@272f82b8:?startup?date?[Sat?Feb?11?14:54:21?CST?2017];?root?of?context?hierarchy
2017-02-11?14:54:23.920??INFO?7020?---?[???????????main]?o.s.b.f.s.DefaultListableBeanFactory?????:?Overriding?bean?definition?for?bean?'dataSource'?with?a?different?definition:?replacing?[Root?bean:?class?[null];?scope=;?abstract=false;?lazyInit=false;?autowireMode=3;?dependencyCheck=0;?autowireCandidate=true;?primary=false;?factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp;?factoryMethodName=dataSource;?initMethodName=null;?destroyMethodName=(inferred);?defined?in?class?path?resource?[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Dbcp.class]]?with?[Root?bean:?class?[null];?scope=;?abstract=false;?lazyInit=false;?autowireMode=3;?dependencyCheck=0;?autowireCandidate=true;?primary=false;?factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat;?factoryMethodName=dataSource;?initMethodName=null;?destroyMethodName=(inferred);?defined?in?class?path?resource?[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]]
2017-02-11?14:54:24.901??INFO?7020?---?[???????????main]?trationDelegate$BeanPostProcessorChecker?:?Bean?'org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration'?of?type?[class?org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration]?is?not?eligible?for?getting?processed?by?all?BeanPostProcessors?(for?example:?not?eligible?for?auto-proxying)
2017-02-11?14:54:25.154??INFO?7020?---?[???????????main]?trationDelegate$BeanPostProcessorChecker?:?Bean?'validator'?of?type?[class?org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]?is?not?eligible?for?getting?processed?by?all?BeanPostProcessors?(for?example:?not?eligible?for?auto-proxying)
2017-02-11?14:54:25.246??INFO?7020?---?[???????????main]?trationDelegate$BeanPostProcessorChecker?:?Bean?'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration'?of?type?[class?org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$4e58c97c]?is?not?eligible?for?getting?processed?by?all?BeanPostProcessors?(for?example:?not?eligible?for?auto-proxying)
2017-02-11?14:54:26.184??INFO?7020?---?[???????????main]?s.b.c.e.t.TomcatEmbeddedServletContainer?:?Tomcat?initialized?with?port(s):?8089?(http)
2017-02-11?14:54:26.214??INFO?7020?---?[???????????main]?o.apache.catalina.core.StandardService???:?Starting?service?Tomcat
2017-02-11?14:54:26.216??INFO?7020?---?[???????????main]?org.apache.catalina.core.StandardEngine??:?Starting?Servlet?Engine:?Apache?Tomcat/8.5.11
2017-02-11?14:54:26.532??INFO?7020?---?[ost-startStop-1]?o.a.c.c.C.[Tomcat].[localhost].[/]???????:?Initializing?Spring?embedded?WebApplicationContext
2017-02-11?14:54:26.532??INFO?7020?---?[ost-startStop-1]?o.s.web.context.ContextLoader????????????:?Root?WebApplicationContext:?initialization?completed?in?4860?ms
2017-02-11?14:54:27.008??INFO?7020?---?[ost-startStop-1]?o.s.b.w.servlet.ServletRegistrationBean??:?Mapping?servlet:?'dispatcherServlet'?to?[/]
2017-02-11?14:54:27.026??INFO?7020?---?[ost-startStop-1]?o.s.b.w.servlet.FilterRegistrationBean???:?Mapping?filter:?'characterEncodingFilter'?to:?[/*]
2017-02-11?14:54:27.028??INFO?7020?---?[ost-startStop-1]?o.s.b.w.servlet.FilterRegistrationBean???:?Mapping?filter:?'hiddenHttpMethodFilter'?to:?[/*]
2017-02-11?14:54:27.028??INFO?7020?---?[ost-startStop-1]?o.s.b.w.servlet.FilterRegistrationBean???:?Mapping?filter:?'httpPutFormContentFilter'?to:?[/*]
2017-02-11?14:54:27.028??INFO?7020?---?[ost-startStop-1]?o.s.b.w.servlet.FilterRegistrationBean???:?Mapping?filter:?'requestContextFilter'?to:?[/*]
2017-02-11?14:54:28.163??INFO?7020?---?[???????????main]?s.w.s.m.m.a.RequestMappingHandlerAdapter?:?Looking?for?@ControllerAdvice:?org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@272f82b8:?startup?date?[Sat?Feb?11?14:54:21?CST?2017];?root?of?context?hierarchy
2017-02-11?14:54:28.553??INFO?7020?---?[???????????main]?s.w.s.m.m.a.RequestMappingHandlerMapping?:?Mapped?"{[/error]}"?onto?public?org.springframework.http.ResponseEntity<java.util.Map<java.lang.String,?java.lang.Object>>?org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-02-11?14:54:28.557??INFO?7020?---?[???????????main]?s.w.s.m.m.a.RequestMappingHandlerMapping?:?Mapped?"{[/error],produces=[text/html]}"?onto?public?org.springframework.web.servlet.ModelAndView?org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-02-11?14:54:28.809??INFO?7020?---?[???????????main]?o.s.w.s.handler.SimpleUrlHandlerMapping??:?Mapped?URL?path?[/webjars/**]?onto?handler?of?type?[class?org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-02-11?14:54:28.809??INFO?7020?---?[???????????main]?o.s.w.s.handler.SimpleUrlHandlerMapping??:?Mapped?URL?path?[/**]?onto?handler?of?type?[class?org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-02-11?14:54:29.040??INFO?7020?---?[???????????main]?o.s.w.s.handler.SimpleUrlHandlerMapping??:?Mapped?URL?path?[/**/favicon.ico]?onto?handler?of?type?[class?org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-02-11?14:54:29.271??WARN?7020?---?[???????????main]?ationConfigEmbeddedWebApplicationContext?:?Exception?encountered?during?context?initialization?-?cancelling?refresh?attempt:?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?(no?profiles?are?currently?active).
2017-02-11?14:54:29.365??INFO?7020?---?[???????????main]?utoConfigurationReportLoggingInitializer?:?

Error?starting?ApplicationContext.?To?display?the?auto-configuration?report?re-run?your?application?with?'debug'?enabled.
2017-02-11?14:54:29.464?ERROR?7020?---?[???????????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?(no?profiles?are?currently?active).

第一次啟動出現(xiàn)了這個 并沒有和數(shù)據(jù)庫鏈接 是什么的問題???

正在回答

15 回答

http://img2.sycdn.imooc.com/59e1dbc10001d6cd05730353.jpg

原因是這個?。。。≥斎雂atasource時自動添加了個dbcp 沒留意到

2 回復 有任何疑惑可以回復我~
#1

慕粉3364716丶EC 提問者

昂昂謝謝了
2017-11-05 回復 有任何疑惑可以回復我~

可以在@SpringBootApplication中添加exclude = {DataSourceAutoConfiguration.class},排除此類的autoconfig即排除數(shù)據(jù)庫的自動啟動。

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

每次修改yml文件,都會出現(xiàn)這個錯誤:https://img1.sycdn.imooc.com//5ac436020001bbe205080547.jpg

之后我在maven Projects中不斷刷新,就好了(前提是你在測試類中沒有出錯,這里,你可以寫一個測試類,測試操作數(shù)據(jù)庫,還是這個錯的話,可能是yml配置錯誤,成功的話就是jar包沒有刷新

https://img1.sycdn.imooc.com//5ac438400001455e02160143.jpghttps://img1.sycdn.imooc.com//5ac4384d000117d511400083.jpg

啟動成功


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

http://www.cnblogs.com/Genesisx/p/5857428.html

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

application.properties文件配置好就可以了

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

我也出現(xiàn)一樣的問題,請問是怎么解決的????

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

添加@ConfigurationProperties(prefix="spring")? 我反正是這樣就好使了

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

Hi陰天

在那里添加???
2018-04-24 回復 有任何疑惑可以回復我~

也是上面的問題,怎么解決啊

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

這是因為spring boot 會默認加載

org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration?這個類

DataSourceAutoConfiguration類使用了@Configuration注解向spring注入了dataSource bean。因為工程中沒有關于dataSource相關的配置信息,當spring創(chuàng)建dataSource bean因缺少相關的信息就會報錯。

解決辦法發(fā)是:

在Application類上增加

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})


6 回復 有任何疑惑可以回復我~
#1

聞人起深

大佬,我加這個類是紅字,應該咋辦
2018-03-14 回復 有任何疑惑可以回復我~
#2

Hi陰天

我添加了無效,還是報錯了·····Action: Consider revisiting the conditions above or defining a bean of type 'javax.sql.DataSource' in your configuration. Process finished with exit code 1
2018-04-24 回復 有任何疑惑可以回復我~
#3

慕絲4066834 回復 Hi陰天

兄dei 解決沒有
2018-04-24 回復 有任何疑惑可以回復我~
#4

Hi陰天 回復 慕絲4066834

哭哭哭,沒有解決啊·我的神一下午了 一直在找答案。
2018-04-24 回復 有任何疑惑可以回復我~
#5

Hi陰天 回復 慕絲4066834

<optional>true</optional> 就好了
2018-04-24 回復 有任何疑惑可以回復我~
#6

幕布斯4531737 回復 Hi陰天

兄dei你這個是在哪加的?。?!我搞了一上午都沒搞好
2018-05-02 回復 有任何疑惑可以回復我~
#7

weixin_慕碼人3521696 回復 聞人起深

你解決了嗎,我的也是紅字
2019-05-20 回復 有任何疑惑可以回復我~
#8

馬騰騰

對 確實是加個這個注解就好了
2019-05-27 回復 有任何疑惑可以回復我~
查看5條回復

?代碼中我是這樣直接傳值的

????public?void?saveService(BaseAbstractDto?basedto){
HisServicePriceDto?dto?=?super.getExactlyDto(basedto);
String?orgCode?=?"455416061";
dto.getHisServicePrice().setOrgCode(orgCode);
hisServicePriceService.saveService(dto);
}
http://img1.sycdn.imooc.com//595b456c0001776006850456.jpg?

可是在調試中.這個實體類顯示EnhancerBySpringCGLIB

不知道EnhancerBySpringCGLIB?這個是什么意思


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

舉報

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

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

進入課程

啟動springboot出現(xiàn)這個錯誤

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

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

幫助反饋 APP下載

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

公眾號

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