啟動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ù)庫鏈接 是什么的問題???
2017-10-14
原因是這個?。。。≥斎雂atasource時自動添加了個dbcp 沒留意到
2020-03-30
可以在@SpringBootApplication中添加exclude = {DataSourceAutoConfiguration.class},排除此類的autoconfig即排除數(shù)據(jù)庫的自動啟動。
2018-04-04
每次修改yml文件,都會出現(xiàn)這個錯誤:
之后我在maven Projects中不斷刷新,就好了(前提是你在測試類中沒有出錯,這里,你可以寫一個測試類,測試操作數(shù)據(jù)庫,還是這個錯的話,可能是yml配置錯誤,成功的話就是jar包沒有刷新)
啟動成功
2017-11-05
http://www.cnblogs.com/Genesisx/p/5857428.html
2017-11-05
application.properties文件配置好就可以了
2017-10-14
我也出現(xiàn)一樣的問題,請問是怎么解決的????
2017-09-23
添加@ConfigurationProperties(prefix="spring")? 我反正是這樣就好使了
2017-09-18
也是上面的問題,怎么解決啊
2017-08-01
這是因為spring boot 會默認加載
DataSourceAutoConfiguration類使用了@Configuration注解向spring注入了dataSource bean。因為工程中沒有關于dataSource相關的配置信息,當spring創(chuàng)建dataSource bean因缺少相關的信息就會報錯。
解決辦法發(fā)是:
在Application類上增加
2017-07-04
?代碼中我是這樣直接傳值的
?
????public?void?saveService(BaseAbstractDto?basedto){
HisServicePriceDto?dto?=?super.getExactlyDto(basedto);
String?orgCode?=?"455416061";
dto.getHisServicePrice().setOrgCode(orgCode);
hisServicePriceService.saveService(dto);
}
可是在調試中.這個實體類顯示EnhancerBySpringCGLIB
不知道EnhancerBySpringCGLIB?這個是什么意思