SpringBoot启动报错" Unable to start embedded container; nested exception is org.springframework.beans.fa
2017-09-15 14:28
671 查看
SpringBoot启动报如下异常:
关键词:
Unable to start embedded container;
Error creating bean with name
org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat’:
Cache
解决:
所以猜测是注解配置的错误,报Bean工厂错误,后面找博客和相关其他排查了一下.发现是我注解@EnableCaching 在没有用到缓存技术就放到application启动类中了.@EnableCacheing要和@Cacheable(“books”)一起使用,否则就删了它,否则就会报这个错误
所以但凡是报该异常的,先排除一下是不是注解字段放错位置和拼写错误
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2017-09-15 14:08:02.979 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.config.internalCacheAdvisor' defined in class path resource [org/springframework/cache/annotation/ProxyCachingConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate
关键词:
Unable to start embedded container;
Error creating bean with name
org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat’:
Cache
解决:
所以猜测是注解配置的错误,报Bean工厂错误,后面找博客和相关其他排查了一下.发现是我注解@EnableCaching 在没有用到缓存技术就放到application启动类中了.@EnableCacheing要和@Cacheable(“books”)一起使用,否则就删了它,否则就会报这个错误
所以但凡是报该异常的,先排除一下是不是注解字段放错位置和拼写错误
相关文章推荐
- org.springframework.context.ApplicationContextException: Unable to start embedded container; nested
- Spring boot多模块(moudle)中的一个注入错误(Unable to start embedded container; nested exception is org)
- Spring Boot常见问题(二)Unable to start embedded container; nested exception is java.lang.NoSuchMethodErro
- Spring 整合 Flex (BlazeDS)无法从as对象 到 Java对象转换的异常:org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.Date' to required type 'java.sql.Timestamp' for property 'wfsj'; nested exception is java.lang.Ill
- org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jboss.resteasy.plug
- 关于spring boot org.springframework.context.ApplicationContextException:Unable to start Embedded解决方案
- springboot 启动异常 javax/servlet/ServletContext Unable to start embedded container; nested exception is
- nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException
- Initialization of bean failed; nested exception is org.springframework.beans.factory.: 错误分析
- Error creating bean with name 'userService': Injection of resource methods failed; nested exception is org.springframework.beans
- 启动出现org.springframework.beans.factory.BeanCreationException或者Unable to instantiate default tuplizer
- Spring MVC集成thymeleaf时提示:defined in ServletContext resource [/WEB-INF/SrpingMVCTest-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException
- Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFa
- spring启动失败:org.springframework.beans.factory.access.BootstrapException: Unable to initialize group d
- nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add
- nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException
- Error creating bean with name 'userService': Injection of resource methods failed; nested exception is org.springframework.beans
- ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to chec
- Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExc
- org.springframework.beans.FatalBeanException: Unable to load schema mappings from location [META-INF/spring.schemas]