为了账号安全,请及时绑定邮箱和手机立即绑定

怎么修复?error creating bean with name Injection of autowired depen

怎么修复?error creating bean with name Injection of autowired depen

繁星coding 2019-01-18 00:43:46
我用intellj idea2018.1 写一个web工程。用的环境是jdk10和tomcat9.0.8.出现了以下这个错误。但是当我把jdk10换成jdk1.8时候,这个错误就没了 程序也能跑通。 我现在还是想用jdk10,能帮我看下为什么jdk10会导致这个错误吗?谢谢!!! org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'proviceMasterController': Injection ofautowired dependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: protected javax.validation.Validatorcom.jeeplus.common.web.BaseController.validator; nested exception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'validator' defined in file[/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]:Invocation of init method failed; nested exception isjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:301)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1186)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)atcom.jeeplus.modules.sys.listener.WebContextListener.initWebApplicationContext(WebContextListener.java:16)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4627)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5091)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)atorg.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1737)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564) atorg.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)atjava.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)atjava.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)atorg.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456)atorg.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564) atorg.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)atjava.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)atjava.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:75)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564) atjava.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) atjava.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) atjava.base/java.security.AccessController.doPrivileged(Native Method)atjava.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)atjava.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)atjava.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)atjava.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)at java.base/java.security.AccessController.doPrivileged(NativeMethod) atjava.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)atjava.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)atjava.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)at java.base/java.lang.Thread.run(Thread.java:844) Caused by:org.springframework.beans.factory.BeanCreationException: Could notautowire field: protected javax.validation.Validatorcom.jeeplus.common.web.BaseController.validator; nested exception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'validator' defined in file[/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]:Invocation of init method failed; nested exception isjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:522)atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)... 59 more Caused by:org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'validator' defined in file[/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]:Invocation of init method failed; nested exception isjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:494)... 61 more Caused by: java.lang.NoClassDefFoundError:javax/xml/bind/JAXBException atjava.base/java.lang.Class.forName0(Native Method) atjava.base/java.lang.Class.forName(Class.java:374) atorg.jboss.logging.Logger$1.run(Logger.java:2252) atjava.base/java.security.AccessController.doPrivileged(Native Method)at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) atorg.jboss.logging.Logger.getMessageLogger(Logger.java:2214) atorg.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29)at org.hibernate.validator.internal.util.Version.(Version.java:27) atorg.hibernate.validator.internal.engine.ConfigurationImpl.(ConfigurationImpl.java:66)atorg.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41)atjavax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276)atorg.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:223)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)... 71 more Caused by: java.lang.ClassNotFoundException:javax.xml.bind.JAXBException atorg.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1292)atorg.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1121)... 85 more 2018-07-13 23:45:33,830 DEBUG[com.jeeplus.common.utils.SpringContextHolder] -清除SpringContextHolder中的ApplicationContext:Root WebApplicationContext:startup date [Fri Jul 13 23:45:25 CST 2018]; root of context hierarchy2018-07-13 23:45:33,866 ERROR[org.springframework.web.context.ContextLoader] - Contextinitialization failedorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'proviceMasterController': Injection ofautowired dependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: protected javax.validation.Validatorcom.jeeplus.common.web.BaseController.validator; nested exception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'validator' defined in file[/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]:Invocation of init method failed; nested exception isjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:301)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1186)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)atcom.jeeplus.modules.sys.listener.WebContextListener.initWebApplicationContext(WebContextListener.java:16)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4627)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5091)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)atorg.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1737)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564) atorg.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)atjava.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)atjava.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)atorg.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456)atorg.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564) atorg.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)atjava.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)atjava.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:75)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399)atjava.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564) atjava.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) atjava.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) atjava.base/java.security.AccessController.doPrivileged(Native Method)atjava.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)atjava.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)atjava.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)atjava.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)at java.base/java.security.AccessController.doPrivileged(NativeMethod) atjava.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)atjava.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)atjava.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)at java.base/java.lang.Thread.run(Thread.java:844) Caused by:org.springframework.beans.factory.BeanCreationException: Could notautowire field: protected javax.validation.Validatorcom.jeeplus.common.web.BaseController.validator; nested exception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'validator' defined in file[/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]:Invocation of init method failed; nested exception isjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:522)atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)... 59 more Caused by:org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'validator' defined in file[/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]:Invocation of init method failed; nested exception isjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:494)... 61 more Caused by: java.lang.NoClassDefFoundError:javax/xml/bind/JAXBException atjava.base/java.lang.Class.forName0(Native Method) 13-Jul-201823:45:33.868 严重 [RMI TCP Connection(2)-127.0.0.1]org.apache.catalina.core.StandardContext.startInternal One or morelisteners failed to start. Full details will be found in theappropriate container log file atjava.base/java.lang.Class.forName(Class.java:374) atorg.jboss.logging.Logger$1.run(Logger.java:2252) 13-Jul-201823:45:33.869 严重 [RMI TCP Connection(2)-127.0.0.1]org.apache.catalina.core.StandardContext.startInternal Context []startup failed due to previous errors atjava.base/java.security.AccessController.doPrivileged(Native Method)at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) atorg.jboss.logging.Logger.getMessageLogger(Logger.java:2214) atorg.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29)at org.hibernate.validator.internal.util.Version.(Version.java:27) atorg.hibernate.validator.internal.engine.ConfigurationImpl.(ConfigurationImpl.java:66)atorg.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41)atjavax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276)atorg.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:223)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)... 71 more Caused by: java.lang.ClassNotFoundException:javax.xml.bind.JAXBException atorg.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1292)atorg.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1121)... 85 more
查看完整描述

1 回答

?
繁华开满天机

TA贡献1816条经验 获得超4个赞

报错原因是jdk10的rt.jar里面没有javax.xml.bind.JAXBException这个类

查看完整回答
反对 回复 2019-02-12
  • 1 回答
  • 0 关注
  • 4518 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信