Не удалось запустить bean-компонент eurekaAutoServiceRegistration
из-за отсутствия зарегистрированной области действия для имени области действия 'refresh'
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class })
@EnableDiscoveryClient
public class WebRun extends SpringBootServletInitializer {
public SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(WebRun.class);
}
public static void main(String[] args) {
SpringApplication.run(WebRun.class, args);
}
}
2 мая 2019 г. 16: 45: 22,965 信息 [http-nio-9999-exec-1]
org.apache.catalina.core.ApplicationContext.log Инициализация Spring
FrameworkServlet 'Диспетчер' 22-мая-2019 16: 46: 04.846 严重
[http-nio-9999-exec-1] org.apache.catalina.core.ApplicationContext.log
StandardWrapper.Throwable
org.springframework.context.ApplicationContextException: не удалось
запустить bean 'eurekaAutoServiceRegistration'; вложенное исключение
java.lang.IllegalStateException: Scope не зарегистрирован для имени области
«обновить» в
org.springframework.context.support.DefaultLifecycleProcessor.doStart (DefaultLifecycleProcessor.java:178)
в
org.springframework.context.support.DefaultLifecycleProcessor.access $ 200 (DefaultLifecycleProcessor.java:50)
в
org.springframework.context.support.DefaultLifecycleProcessor $ LifecycleGroup.start (DefaultLifecycleProcessor.java:348)
в
org.springframework.context.support.DefaultLifecycleProcessor.startBeans (DefaultLifecycleProcessor.java:151)
в
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh (DefaultLifecycleProcessor.java:114)
в
org.springframework.context.support.AbstractApplicationContext.finishRefresh (AbstractApplicationContext.java:880)
в
org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:546)
в
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext (FrameworkServlet.java:668)
в
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext (FrameworkServlet.java:540)
в
org.springframework.web.servlet.FrameworkServlet.initServletBean (FrameworkServlet.java:494)
в
org.springframework.web.servlet.HttpServletBean.init (HttpServletBean.java:171)
в javax.servlet.GenericServlet.init (GenericServlet.java:158) в
org.apache.catalina.core.StandardWrapper.initServlet (StandardWrapper.java:1142)
в
org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:789)
в
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:134)
в
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:96)
в
org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:493)
в
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:137)
в
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:81)
в
org.apache.catalina.valves.AbstractAccessLogValve.invoke (AbstractAccessLogValve.java:660)
в
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:87)
в
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343)
в
org.apache.coyote.http11.Http11Processor.service (Http11Processor.java:798)
в
org.apache.coyote.AbstractProcessorLight.process (AbstractProcessorLight.java:66)
в
org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:808)
в
org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1498)
в
org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49)
в
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
в
java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624)
в
org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61)
at java.lang.Thread.run (Thread.java:748) Причина:
java.lang.IllegalStateException: Scope не зарегистрирован для имени области
«обновить» в
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:337)
в
org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:197)
в
org.springframework.aop.target.SimpleBeanTargetSource.getTarget (SimpleBeanTargetSource.java:35)
в
org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.getTarget (CglibAopProxy.java:705)
в
org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.intercept (CglibAopProxy.java:655)
в
com.netflix.appinfo.ApplicationInfoManager $$ EnhancerBySpringCGLIB $$ 4652f076.getInfo ()
в
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.maybeInitializeClient (EurekaServiceRegistry.java:55)
в
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.register (EurekaServiceRegistry.java:37)
в
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration.start (EurekaAutoServiceRegistration.java:73)
в
org.springframework.context.support.DefaultLifecycleProcessor.doStart (DefaultLifecycleProcessor.java:175)
... еще 30 22 мая-2019 16: 46: 04.847 严重 [http-nio-9999-exec-1]
org.apache.catalina.core.StandardWrapperValve.invoke Allocate
исключение для сервлета [dispatcher] java.lang.IllegalStateException:
Нет области, зарегистрированной для имени области "обновить" в
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:337)
в
org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:197)
в
org.springframework.aop.target.SimpleBeanTargetSource.getTarget (SimpleBeanTargetSource.java:35)
в
org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.getTarget (CglibAopProxy.java:705)
в
org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.intercept (CglibAopProxy.java:655)
в
com.netflix.appinfo.ApplicationInfoManager $$ EnhancerBySpringCGLIB $$ 4652f076.getInfo ()
в
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.maybeInitializeClient (EurekaServiceRegistry.java:55)
в
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.register (EurekaServiceRegistry.java:37)
в
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration.start (EurekaAutoServiceRegistration.java:73)
в
org.springframework.context.support.DefaultLifecycleProcessor.doStart (DefaultLifecycleProcessor.java:175)
в
org.springframework.context.support.DefaultLifecycleProcessor.access $ 200 (DefaultLifecycleProcessor.java:50)
в
org.springframework.context.support.DefaultLifecycleProcessor $ LifecycleGroup.start (DefaultLifecycleProcessor.java:348)
в
org.springframework.context.support.DefaultLifecycleProcessor.startBeans (DefaultLifecycleProcessor.java:151)
в
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh (DefaultLifecycleProcessor.java:114)
в
org.springframework.context.support.AbstractApplicationContext.finishRefresh (AbstractApplicationContext.java:880)
в
org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:546)
в
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext (FrameworkServlet.java:668)
в
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext (FrameworkServlet.java:540)
в
org.springframework.web.servlet.FrameworkServlet.initServletBean (FrameworkServlet.java:494)
в
org.springframework.web.servlet.HttpServletBean.init (HttpServletBean.java:171)
в javax.servlet.GenericServlet.init (GenericServlet.java:158) в
org.apache.catalina.core.StandardWrapper.initServlet (StandardWrapper.java:1142)
в
org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:789)в
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:134)
в
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:96)
в
org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:493)
в
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:137)
в
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:81)
в
org.apache.catalina.valves.AbstractAccessLogValve.invoke (AbstractAccessLogValve.java:660)
в
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:87)
в
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343)
в
org.apache.coyote.http11.Http11Processor.service (Http11Processor.java:798)
в
org.apache.coyote.AbstractProcessorLight.process (AbstractProcessorLight.java:66)
в
org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:808)
в
org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1498)
в
org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49)
в
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
в
java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624)
в
org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61)
at java.lang.Thread.run (Thread.java:748)