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

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

啟動(dòng)springboot出現(xiàn)這個(gè)錯(cuò)誤

??.???____??????????_????????????__?_?_
?/\\?/?___'_?__?_?_(_)_?__??__?_?\?\?\?\
(?(?)\___?|?'_?|?'_|?|?'_?\/?_`?|?\?\?\?\
?\\/??___)|?|_)|?|?|?|?|?||?(_|?|??)?)?)?)
??'??|____|?.__|_|?|_|_|?|_\__,?|?/?/?/?/
?=========|_|==============|___/=/_/_/_/
?::?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).

第一次啟動(dòng)出現(xiàn)了這個(gè) 并沒(méi)有和數(shù)據(jù)庫(kù)鏈接 是什么的問(wèn)題?。?/p>

正在回答

15 回答

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

原因是這個(gè)?。。?!輸入datasource時(shí)自動(dòng)添加了個(gè)dbcp 沒(méi)留意到

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕粉3364716丶EC 提問(wèn)者

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

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

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

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

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

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

啟動(dòng)成功


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

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

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

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

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

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

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

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

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

Hi陰天

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

也是上面的問(wèn)題,怎么解決啊

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

這是因?yàn)閟pring boot 會(huì)默認(rèn)加載

org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration?這個(gè)類

DataSourceAutoConfiguration類使用了@Configuration注解向spring注入了dataSource bean。因?yàn)楣こ讨袥](méi)有關(guān)于dataSource相關(guān)的配置信息,當(dāng)spring創(chuàng)建dataSource bean因缺少相關(guān)的信息就會(huì)報(bào)錯(cuò)。

解決辦法發(fā)是:

在Application類上增加

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})


6 回復(fù) 有任何疑惑可以回復(fù)我~
#1

聞人起深

大佬,我加這個(gè)類是紅字,應(yīng)該咋辦
2018-03-14 回復(fù) 有任何疑惑可以回復(fù)我~
#2

Hi陰天

我添加了無(wú)效,還是報(bào)錯(cuò)了·····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 回復(fù) 有任何疑惑可以回復(fù)我~
#3

慕絲4066834 回復(fù) Hi陰天

兄dei 解決沒(méi)有
2018-04-24 回復(fù) 有任何疑惑可以回復(fù)我~
#4

Hi陰天 回復(fù) 慕絲4066834

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

Hi陰天 回復(fù) 慕絲4066834

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

幕布斯4531737 回復(fù) Hi陰天

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

weixin_慕碼人3521696 回復(fù) 聞人起深

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

馬騰騰

對(duì) 確實(shí)是加個(gè)這個(gè)注解就好了
2019-05-27 回復(fù) 有任何疑惑可以回復(fù)我~
查看5條回復(fù)

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

????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?

可是在調(diào)試中.這個(gè)實(shí)體類顯示EnhancerBySpringCGLIB

不知道EnhancerBySpringCGLIB?這個(gè)是什么意思


0 回復(fù) 有任何疑惑可以回復(fù)我~
首頁(yè)上一頁(yè)12下一頁(yè)尾頁(yè)

舉報(bào)

0/150
提交
取消
2小時(shí)學(xué)會(huì)Spring Boot
  • 參與學(xué)習(xí)       151527    人
  • 解答問(wèn)題       1132    個(gè)

Spring Boot入門視頻教程,你將學(xué)會(huì)使用Spring Boot快速構(gòu)建應(yīng)用程序

進(jìn)入課程

啟動(dòng)springboot出現(xiàn)這個(gè)錯(cuò)誤

我要回答 關(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)