spring boot项目部署到tomcat启动失败? [问题点数:50分,结帖人qq_37810333]

一键查看最优答案

确认一键查看最优答案?
本功能为VIP专享,开通VIP获取答案速率将提升10倍哦!
Bbs1
本版专家分:18
结帖率 62.5%
Bbs1
本版专家分:50
springboot学习笔记:6.内置tomcat启动和外部tomcat部署总结
<em>spring</em><em>boot</em>的web<em>项目</em>的<em>启动</em>主要分为: 一.使用内置<em>tomcat</em><em>启动</em> <em>启动</em>方式: 1、IDEA中main函数<em>启动</em> 2、mvn <em>spring</em><em>boot</em>-run 命令 3、java -jar XXX.jar 配置内置<em>tomcat</em>属性: 关于Tomcat的属性都在org.<em>spring</em>framework.<em>boot</em>.autoconfigure.web.ServerProperties配...
springboot中使用jackson容易引起的报错
  问题: org.<em>spring</em>framework.context.ApplicationContextException: Unable to start web server; nested exception is org.<em>spring</em>framework.<em>boot</em>.web.server.WebServerException: Unable to start embedded Tomcat...
springboot 使用tomcat启动
<em>spring</em><em>boot</em> 版本   2.0.4.RELEASE <em>tomcat</em>版本  8.5   只要你的<em>项目</em>能运行<em>启动</em>类跑起来不报错,那么只要简单修改下<em>启动</em>类就行了,继承SpringBootServletInitializer类,并重载configure方法。   pom文件 &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt; &amp;lt;project...
SpringBoot启动Tomcat的两种方式
所有文章优先发布在个人博客上面,后面修改可能忘记同步到CSDN。 给你带来麻烦抱歉。 本篇文章个人博客位置 :https://www.xdx97.com/article?bamId=654718043812790272 目的:使用<em>spring</em><em>boot</em><em>启动</em><em>tomcat</em> 第一种:(了解就好,基本只是测试的时候用一下) <em>启动</em>单个的controller 代码如下 package...
org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class
"C:\Program Files\Java\jdk1.8.0_201\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:64445,suspend=y,server=n -javaagent:C:\Users\Administrator\.IntelliJIdea2018.3\system\captureAge...
Spring无法加载问题:org.springframework.web.servlet.DispatcherServlet。。。
Spring版本为:<em>spring</em>-framework-3.2.2.RELEASE 错误信息如下: SEVERE: Servlet /CMS threw load() exception java.la
SpringBoot在IDE可以正常运行,但是部署到Tomcat里就会启动失败
我打算使用<em>spring</em>-<em>boot</em> + mybits plus构建一个RESTful服务器,在Eclipse里可以正常运行。但是一旦打包放到Tomcat里就会出现如下错误(NoSuchBeanDefinition),个人推测是某些配置文件没写完整或者有错误,导致的实例注入<em>失败</em>。 不过我检查了很多遍,尝试了很多办法,依然还是会有这个问题。 请各路大神帮帮忙!! 目录结构: java-xxx.xxx.xxx.xxx.dao |-xxx.xxx.xxx.xxx.entity(也就是javaBean类) |-xxx.xxx.xxx.xxx.service(业务逻辑接口) |-xxx.xxx.xxx.xxx.service.impl(业务逻辑实现类) |-xxx.xxx.xxx.xxx.controller resource-mapper . xxx . xxx.xml pom.xml版本信息: > mybatisplus.<em>spring</em>.<em>boot</em>.version-1.0.5 > mybatis-plus-2.3 > <em>spring</em>-<em>boot</em>-starter-parent-2.3 application.yml信息: mybatis-plus部分如下 > mapper-locations: classpath:mapper/**/*.xml > typeAliasesPackage: com.latou.power.modules.*.entity Java版本-1.8.0 Tomcat版本-8.5 Tomcat报错如下: > ConfigServletWebServerApplicationContext : > Exception encountered during context initialization - cancelling refresh attempt: org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'custUserController': Unsatisfied dependency expressed through field 'custUserService'; > > nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'custUserService': Unsatisfied dependency expressed through field 'baseMapper'; > > nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinition Exception: No qualifying bean of type 'com.latou.power.modules.cus.dao.CustUserDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)}
springboot项目启动时注册监听器,使用springboot内置tomcat启动OK,打包部署后监听没反应不报错
<em>spring</em><em>boot</em><em>项目</em><em>启动</em>时注册监听器,使用<em>spring</em><em>boot</em>内置<em>tomcat</em><em>启动</em>OK,打包<em>部署</em>后监听没反应不报错,排查了很久就是找不到问题,求助各位大神。 下面附正常(<em>启动</em>成功图)图和<em>部署</em><em>启动</em>图: ![监听加载成功会输入如下信息](https://img-ask.csdn.net/upload/201809/25/1537865242_478789.jpg) 下面是<em>部署</em>到服务器的日志输出,<em>项目</em>名称为ROOT(只要关注这个<em>项目</em>就好了),未输出监听日志,说明监听没有<em>启动</em> ![这是<em>部署</em>到服务器的<em>启动</em>日志图,监听未<em>启动</em>](https://img-ask.csdn.net/upload/201809/25/1537865021_734628.jpg) 跪求大神们指点
Spring boot启动时报错Could not find class [org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration]?
Spring <em>boot</em><em>启动</em>报错,如下: java.lang.IllegalArgumentException: Could not find class [org.<em>spring</em>framework.<em>boot</em>.autoconfigure.web.EmbeddedServletContainerAutoConfiguration] at org.<em>spring</em>framework.util.ClassUtils.resolveClassName(ClassUtils.java:327) at org.<em>spring</em>framework.core.annotation.TypeMappedAnnotation.adapt(TypeMappedAnnotation.java:483) at org.<em>spring</em>framework.core.annotation.TypeMappedAnnotation.getValue(TypeMappedAnnotation.java:403) at org.<em>spring</em>framework.core.annotation.TypeMappedAnnotation.asMap(TypeMappedAnnotation.java:288) at org.<em>spring</em>framework.core.annotation.AbstractMergedAnnotation.asAnnotationAttributes(AbstractMergedAnnotation.java:193) at org.<em>spring</em>framework.core.type.AnnotatedTypeMetadata.getAnnotationAttributes(AnnotatedTypeMetadata.java:106) at org.<em>spring</em>framework.context.annotation.AnnotationConfigUtils.attributesFor(AnnotationConfigUtils.java:285) at org.<em>spring</em>framework.context.annotation.AnnotationBeanNameGenerator.determineBeanNameFromAnnotation(AnnotationBeanNameGenerator.java:100) at org.<em>spring</em>framework.context.annotation.AnnotationBeanNameGenerator.generateBeanName(AnnotationBeanNameGenerator.java:79) at org.<em>spring</em>framework.context.annotation.ConfigurationClassBeanDefinitionReader.registerBeanDefinitionForImportedConfigurationClass(ConfigurationClassBeanDefinitionReader.java:160) at org.<em>spring</em>framework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:141) at org.<em>spring</em>framework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:120) at org.<em>spring</em>framework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:337) at org.<em>spring</em>framework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:242) at org.<em>spring</em>framework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) at org.<em>spring</em>framework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:747) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:397) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:315) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92) at org.<em>spring</em>framework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1720) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.<em>tomcat</em>.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:483) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:432) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.<em>tomcat</em>.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.<em>spring</em>framework.<em>boot</em>.autoconfigure.web.EmbeddedServletContainerAutoConfiguration at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1360) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1182) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.<em>spring</em>framework.util.ClassUtils.forName(ClassUtils.java:277) at org.<em>spring</em>framework.util.ClassUtils.resolveClassName(ClassUtils.java:317) ... 69 common frames omitted 我的maven配置文件pom.xml部分内容是: ``` org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-web org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-<em>tomcat</em> javax.servlet javax.servlet-api 3.1.0 org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-<em>tomcat</em> org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-test test org.junit.vintage junit-vintage-engine ``` 请教大神们,为什么会出现这个错误?
SpringBoot 因为jackson版本问题启动失败
解决因为版本问题的报错 pom.xml &lt;parent&gt; &lt;groupId&gt;org.<em>spring</em>framework.<em>boot</em>&lt;/groupId&gt; &lt;artifactId&gt;<em>spring</em>-<em>boot</em>-starter-parent&lt;/artifactId&gt; &lt;version&gt;1.5.3...
SpringBoot整合Filter的两种方式
1.创建maven<em>项目</em>,导入<em>spring</em><em>boot</em>的maven依赖 pom.xml &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4...
spring框架的WebApplicationInitializer接口
疑问:为什么实现了WebApplicationInitializer接口的类,在自动时会自动执行其重写的onStart()方法?第一步: 查看接口WebApplicationInitializer的API(<em>spring</em>-web-x.x.x.jar下)
SpringBoot学习笔记(四) SpringBoot Web相关的自动配置
SpringBoot Web相关的自动配置
spring boot 集成dubbox项目部署tomcat下报错
2016-05-31 17:16:29 [ localhost-startStop-1:5445 ] - [ INFO ] org.<em>spring</em>framework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:181) Shutting down EhCache CacheManager 2016-05-31 17:16:29 [ localhost-startStop-1:5458 ] - [ ERROR ] org.<em>spring</em>framework.<em>boot</em>.SpringApplication.handleRunFailure(SpringApplication.java:825) Application startup failed org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'scheduledTasks': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.itanbank.admin.service.ItbCompanyService com.itanbank.admin.config.ScheduledTasks.itbCompanyService; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'itbCompanyServiceImpl': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.itanbank.admin.repository.web.ItbCompanyRepository com.itanbank.admin.service.ItbCompanyServiceImpl.itbCompanyRepository; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'itbCompanyRepository': Cannot create inner bean '(inner bean)#7623d14e' of type [org.<em>spring</em>framework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7623d14e': Cannot resolve reference to bean 'webEntityManager' while setting constructor argument; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'webEntityManager': Post-processing of FactoryBean's singleton object failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'com.itanbank.admin.service.InvestFinishService': Cannot resolve reference to bean 'investFinishServiceImpl' while setting bean property 'ref'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'investFinishServiceImpl': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.itanbank.admin.repository.web.ItbTrafficGiveRepository com.itanbank.admin.service.InvestFinishServiceImpl.itbTrafficGiveRepository; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'itbTrafficGiveRepository': Cannot create inner bean '(inner bean)#4f762393' of type [org.<em>spring</em>framework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#4f762393': Cannot resolve reference to bean 'webEntityManager' while setting constructor argument; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'webEntityManager': Post-processing of FactoryBean's singleton object failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'com.itanbank.admin.service.RegisterFinishService': Cannot resolve reference to bean 'registerFinishServiceImpl' while setting bean property 'ref'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'registerFinishServiceImpl': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.itanbank.admin.repository.web.ItbFriendInviteRepository com.itanbank.admin.service.RegisterFinishServiceImpl.itbFriendInviteRepository; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'itbFriendInviteRepository': Cannot create inner bean '(inner bean)#403e1ecb' of type [org.<em>spring</em>framework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#403e1ecb': Cannot resolve reference to bean 'webEntityManager' while setting constructor argument; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'webEntityManager': Post-processing of FactoryBean's singleton object failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'com.itanbank.admin.service.BindBankFinishService': Cannot resolve reference to bean 'bindBankFinishServiceImpl' while setting bean property 'ref'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'bindBankFinishServiceImpl': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.itanbank.admin.repository.web.ItbTrafficGiveRepository com.itanbank.admin.service.BindBankFinishServiceImpl.itbTrafficGiveRepository; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'itbTrafficGiveRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Repository interface must not be null on initialization! at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.<em>spring</em>framework.<em>boot</em>.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:764) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.doRun(SpringApplication.java:357) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:305) at org.<em>spring</em>framework.<em>boot</em>.context.web.SpringBootServletInitializer.run(SpringBootServletInitializer.java:149) at org.<em>spring</em>framework.<em>boot</em>.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:129) at org.<em>spring</em>framework.<em>boot</em>.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:85) at org.<em>spring</em>framework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5183) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 目前问题已有解决方案,简单描述下问题:dubbo的多个接口实现类中引用了相同的业务对象dao。把dao封装成service后注入问题就没有出现了。 但是实际问题还没有解决,求大神解答。
springboottomcat启动(一)入口
在<em>spring</em><em>boot</em>中,是融合了<em>tomcat</em>的<em>启动</em>与加载的,那么关于<em>tomcat</em>的<em>启动</em>与加载的入口就是研究的第一步,在EmbeddedWebApplicationContext类中,重写了AbstractApplicationContext的finishRefresh()方法,如下: protected void finishRefresh() { super.finishRefresh()...
springboot @Autowired 注解失败 无法注入bean
问题描述: <em>启动</em>工程<em>失败</em>,报错如下所示: Field demoService in .......... required a bean of type '...........' that could not be found. Consider defining a bean of type '..............' in your configuration.   原因分析:...
SpringBoot 服务启动的时候报错Application run failed
SpringBoot 服务<em>启动</em>的时候报错Application run failed: (1)application.yml文件格式错误,编辑的时候是根据提示默认推荐gbk的格式, 百度后一般都说是是配置文件的布局格式问题,后来再次打开后文件里的注释会乱码 后来将格式转成UTF-8后就好了,这种问题真的是好坑。。。 (2)<em>启动</em>过程中的时候报: 2019-02-22 15:50:50.18...
Spring boot 自动配置 : Servlet Web 应用有关 -- WebMvcAutoConfiguration
概述 WebMvcAutoConfiguration 是Spring <em>boot</em>针对Web MVC的自动配置机制,其效果等同于开发人员自己使用@EnableWebMvc进行的Web MVC配置。 WebMvcAutoConfiguration的启用是有条件的,它在如下条件都满足时才会起作用 : 必须是Servlet Web应用环境; 在classpath上必须有Servlet,Dispatcher...
Spring boot多模块 项目部署阿里云服务器
Spring <em>boot</em><em>项目</em>打war包<em>部署</em>服务器 一、修改<em>项目</em>打包方式 在pom.xml里设置 war 二、移除嵌入式<em>tomcat</em>插件 &lt;dependency&gt; &lt;!-- 指定为Web应用,并<em>启动</em>一个内嵌的Servlet容器(默认是Tomcat)用于处理HTTP请求 --&gt; &lt;groupId&gt;org.<em>spring</em>framework...
Spring Boot 入门 - 进阶篇(7)- 自动配置(AutoConfigure)
自动配置是Spring Boot的最大亮点,完美的展示了CoC约定由于配置。Spring Boot能自动配置Spring各种子<em>项目</em>(Spring MVC, Spring Security, Spring Data, Spring Cloud, Spring Integration, Spring Batch等)以及第三方开源框架所需要定义的各种Bean。  Spring Boot内部定义了各
Spring Boot启动过程(四):Spring Boot内嵌Tomcat启动
  之前在Spring Boot<em>启动</em>过程(二)提到过createEmbeddedServletContainer创建了内嵌的Servlet容器,我用的是默认的Tomcat。 private void createEmbeddedServletContainer() { EmbeddedServletContainer localContainer = th...
spring boot使用tomcat问题
遇到的问题是: 浏览器加载不了静态资源(css、images、js等) 控制台显示: 404 原因:因为<em>tomcat</em>使用了<em>项目</em>名作为访问url,而<em>spring</em> <em>boot</em>没有使用相对路径 解决: &lt;% String path = request.getContextPath(); String basePath = request.getScheme() + "://" +...
SpringBoot配置外部Tomcat项目启动流程源码分析(长文)
SpringBoot应用默认以Jar包方式并且使用内置Servlet容器(默认Tomcat),该种方式虽然简单但是默认不支持JSP并且优化容器比较复杂。故而我们可以使用习惯的外置Tomcat方式并将<em>项目</em>打War包。 【1】创建<em>项目</em>并打War包 ① 同样使用Spring Initializer方式创建<em>项目</em> ② 打包方式选择”war” ③ 选择添加的模块 ④ 创建...
springboot报错java.lang.NoClassDefFoundError
报错信息 ``` java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLSessionImpl at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:598) at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:566) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:110) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:365) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at com.ii.shenfu.destroyer.core.service.impl.FileServiceImpl.testStampSignature(FileServiceImpl.java:222) at com.ii.shenfu.destroyer.core.service.impl.FileServiceImpl.upload(FileServiceImpl.java:139) at com.ii.shenfu.destroyer.core.service.impl.FileServiceImpl.buildPdfContentToOss(FileServiceImpl.java:173) at com.ii.shenfu.destroyer.core.service.impl.FileServiceImpl$$FastClassBySpringCGLIB$$d052386c.invoke() at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.<em>spring</em>framework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.<em>spring</em>framework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.ii.shenfu.destroyer.api.monitor.SysMonitorAspect.monitorExeTime(SysMonitorAspect.java:42) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.<em>spring</em>framework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) at org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.ii.shenfu.destroyer.core.service.impl.FileServiceImpl$$EnhancerBySpringCGLIB$$cad23556.buildPdfContentToOss() at com.ii.shenfu.destroyer.core.service.impl.ReconsiderApprovalServiceImpl.lambda$fillPdfId$7(ReconsiderApprovalServiceImpl.java:417) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at com.ii.shenfu.destroyer.core.service.impl.ReconsiderApprovalServiceImpl.fillPdfId(ReconsiderApprovalServiceImpl.java:414) at com.ii.shenfu.destroyer.core.service.impl.ReconsiderApprovalServiceImpl.submit(ReconsiderApprovalServiceImpl.java:267) at com.ii.shenfu.destroyer.core.service.impl.ReconsiderApprovalServiceImpl$$FastClassBySpringCGLIB$$781cc779.invoke() at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.<em>spring</em>framework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.<em>spring</em>framework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.ii.shenfu.destroyer.api.monitor.SysMonitorAspect.monitorExeTime(SysMonitorAspect.java:42) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.<em>spring</em>framework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) at org.<em>spring</em>framework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.ii.shenfu.destroyer.core.service.impl.ReconsiderApprovalServiceImpl$$EnhancerBySpringCGLIB$$d0a9329d.submit() at com.ii.shenfu.destroyer.api.controller.admin.ReconsiderApprovalController.submit(ReconsiderApprovalController.java:29) at com.ii.shenfu.destroyer.api.controller.admin.ReconsiderApprovalController$$FastClassBySpringCGLIB$$c73d6e1.invoke() at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.<em>spring</em>framework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.<em>spring</em>framework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.ii.shenfu.destroyer.api.monitor.SysMonitorAspect.monitorExeTime(SysMonitorAspect.java:42) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.<em>spring</em>framework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.<em>spring</em>framework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.<em>spring</em>framework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.<em>spring</em>framework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.ii.shenfu.destroyer.api.controller.admin.ReconsiderApprovalController$$EnhancerBySpringCGLIB$$db9ad95c.submit() at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.<em>spring</em>framework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) at org.<em>spring</em>framework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877) at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783) at org.<em>spring</em>framework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) at org.<em>spring</em>framework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) at org.<em>spring</em>framework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974) at org.<em>spring</em>framework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at org.<em>spring</em>framework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.<em>tomcat</em>.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.ii.shenfu.destroyer.core.web.filter.RequestWrapperFilter.doFilter(RequestWrapperFilter.java:29) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.<em>spring</em>framework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96) at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.<em>spring</em>framework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.<em>spring</em>framework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.<em>spring</em>framework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.<em>spring</em>framework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:147) at org.<em>spring</em>framework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.<em>spring</em>framework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) at org.<em>spring</em>framework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.<em>tomcat</em>.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468) at org.apache.<em>tomcat</em>.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.<em>tomcat</em>.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) ``` 在本地运行没有问题 但放在服务器上就报了这个错误 在网上找的方法都是将jdk的版本降低 但是我本地的是1.8.0-152 网上说的是将jdk版本降低到1.8.0-151 请问一下大佬是什么原因才出现的这种问题 真心的搞不懂
Spring-boot:Filter用main方法可以启动,但是放到tomcat下面不能启动
public class RedirectFilter implements Filter {      @Autowired       AppSetting webAppSetting       @Override      public void init(FilterConfig filterConfig) throws ServletException {            log...
spring boot启动报错。
org.<em>spring</em>framework.context.ApplicationContextException: Unable to start web server; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>tomcat</em>ServletWebServerFactory' defined in class path resource [org/<em>spring</em>framework/<em>boot</em>/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot create inner bean '(inner bean)#1d2b1faa' of type [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] while setting bean property 'pointcut'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1d2b1faa': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [sun.misc.Launcher$AppClassLoader@58644d46] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155) ~[<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[<em>spring</em>-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:759) [<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:395) [<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:327) [<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1255) [<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1243) [<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at com.example.<em>spring</em><em>boot</em>loverapi.Spring<em>boot</em>LoverApiApplication.main(Spring<em>boot</em>LoverApiApplication.java:17) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_20] at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_20] at org.<em>spring</em>framework.<em>boot</em>.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [<em>spring</em>-<em>boot</em>-devtools-2.0.3.RELEASE.jar:2.0.3.RELEASE] Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>tomcat</em>ServletWebServerFactory' defined in class path resource [org/<em>spring</em>framework/<em>boot</em>/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot create inner bean '(inner bean)#1d2b1faa' of type [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] while setting bean property 'pointcut'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1d2b1faa': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [sun.misc.Launcher$AppClassLoader@58644d46] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$$Lambda$117/565823534.getObject(Unknown Source) ~[na:na] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:214) ~[<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:178) ~[<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[<em>spring</em>-<em>boot</em>-2.0.3.RELEASE.jar:2.0.3.RELEASE] ... 13 common frames omitted Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot create inner bean '(inner bean)#1d2b1faa' of type [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] while setting bean property 'pointcut'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1d2b1faa': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [sun.misc.Launcher$AppClassLoader@58644d46] at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:327) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:131) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1611) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1363) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$$Lambda$117/565823534.getObject(Unknown Source) ~[na:na] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:94) ~[<em>spring</em>-aop-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:109) ~[<em>spring</em>-aop-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:101) ~[<em>spring</em>-aop-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:254) ~[<em>spring</em>-aop-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1069) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1042) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:492) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] ... 21 common frames omitted Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1d2b1faa': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [sun.misc.Launcher$AppClassLoader@58644d46] at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:262) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1204) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1129) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:312) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] ... 38 common frames omitted Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.<em>spring</em>framework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [sun.misc.Launcher$AppClassLoader@58644d46] at org.<em>spring</em>framework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659) ~[<em>spring</em>-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556) ~[<em>spring</em>-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541) ~[<em>spring</em>-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:245) ~[<em>spring</em>-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE] ... 43 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_20] at java.lang.Class.privateGetDeclaredMethods(Class.java:2688) ~[na:1.8.0_20] at java.lang.Class.getDeclaredMethods(Class.java:1962) ~[na:1.8.0_20] at org.<em>spring</em>framework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641) ~[<em>spring</em>-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] ... 46 common frames omitted Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException at java.net.URLClassLoader$1.run(URLClassLoader.java:372) ~[na:1.8.0_20] at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[na:1.8.0_20] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_20] at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[na:1.8.0_20] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_20] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.8.0_20] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_20] ... 50 common frames omitted Disconnected from the target VM, address: '127.0.0.1:61808', transport: 'socket'
Java 条码生成库 Barcode4J Maven 依赖缺失错误 java.lang.IllegalStateException: Failed to introspect Class
前段时间<em>项目</em>中需要生成商品条码,使用 Barcode4J 库实现的,直接使用了内部的 BarcodeServlet ,仅在 Spring MVC 的 Controller 里简单的封装了下提供个访问路径,使用上没有遇到任何问题。代码如下: import java.io.IOException; import javax.servlet.ServletException; import javax....
Failed to introspect Class [org.springframework.boot.autoconfigure.异常的解决
最近在看<em>spring</em>-<em>boot</em>,有看到利用redis,将session放到缓存中,实现分布式系统的session共享,引入下图的jar包 加入了启用redisHttpSesion的配置。 配置redis java.lang.IllegalStateException: Failed to introspect Class [org.<em>spring</em>framework.<em>boot</em>.autoc...
两个spring boot项目war部署tomcat 其中一个无法正常启动
Spring Boot的<em>spring</em>.jmx资源管理是默认打开的,而两个<em>项目</em>同时使用会冲突 需要在第二个、或者第三个<em>spring</em><em>boot</em><em>项目</em>中增加如下配置: 1:application.properties <em>spring</em>.jmx.enabled=false   2:    jmx:    enabled: false 转载于...
Tomcat启动时卡在[localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory
      <em>tomcat</em><em>启动</em>时一直卡在[localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory,通过查找资料发现这个问题和jvm上的熵池策略有关。 1. 熵池       Linux内核采用熵来描述数据的随机性。熵(entropy)是描述系统混乱无序程度的物理量,一个系统的熵越大则说明该系统的有...
SpringBoot应用部署到Tomcat中无法启动问题
背景 最近公司在做一些内部的小型Web应用时, 为了提高开发效率决定使用SpringBoot, 这货自带Servlet容器,  你在开发Web应用时可以直接在本地像运行控制台应用一样<em>启动</em>,省去了重复<em>部署</em>的时间;配置上相比于SpringMVC也是有了大大的简化。SpringBoot的应用可以直接打成一个可运行的jar包,  你无需发愁为了不同应用要<em>部署</em>多个Tomcat。但是实际<em>部署</em>时你
spring boot 中的 filter 的 init方法中获取当前应用端口
前提:<em>spring</em> <em>boot</em>应用,使用默认<em>tomcat</em>服务器,需要在filter的init方法中获取当前应用所提供服务的端口,即server.port的值。 重要的事情说三遍: filter的init方法中 filter的init方法中 filter的init方法中
部署SpringBoot到tomcat上并启动
https://blog.csdn.net/qq_27905183/article/details/79121759
SpringBoot 启动tomcat启动后会停止服务是如何解决
在eclipse 上对<em>项目</em> 运行 <em>spring</em> <em>boot</em> App 没有异常但<em>tomcat</em> <em>启动</em>后会停止,这是什么原因? dome参照《Spring <em>boot</em>实战》第二章 版本信息 jdk1.8 本地Tomcat 9.0.11 Log ``` :: Spring Boot :: (v2.0.4.RELEASE) 九月 13, 2018 11:17:54 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Tomcat] 九月 13, 2018 11:17:54 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/9.0.11 九月 13, 2018 11:17:54 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: Loaded APR based Apache Tomcat Native library [1.2.14] using APR version [1.6.2]. 九月 13, 2018 11:17:54 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 九月 13, 2018 11:17:54 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 九月 13, 2018 11:17:55 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL 信息: OpenSSL successfully initialized [OpenSSL 1.0.2l 25 May 2017] 九月 13, 2018 11:17:55 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring embedded WebApplicationContext 九月 13, 2018 11:17:55 上午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service [Tomcat] ``` pox.xml配置 ``` 4.0.0 com.example readinglist 0.0.1-SNAPSHOT jar readinglist Demo project for Spring Boot org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-parent 2.0.4.RELEASE UTF-8 UTF-8 1.8 9.0.11 org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-data-jpa org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-thymeleaf org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-web org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-starter-test test ch.qos.logback logback-classic 1.3.0-alpha4 test com.fasterxml.jackson.core jackson-databind 2.9.6 org.apache.<em>tomcat</em> <em>tomcat</em>-juli ${<em>tomcat</em>.version} org.slf4j slf4j-nop 1.7.2 org.<em>spring</em>framework.<em>boot</em> <em>spring</em>-<em>boot</em>-maven-plugin ```
springboot 指定内嵌tomcat7的版本报错(springboot自带tomcat9)
向各路大佬求救,贴出pom、maven树、报错信息(如果不指定版本就不会报错) &lt;properties&gt; &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt; &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/p...
SpringBoot2.x项目部署遇到的一些坑及解决方法
1.环境 <em>项目</em>是SpringBoot2.x,<em>部署</em>的<em>tomcat</em>版本略低为8.0 2.问题 (1)首先打war包,这里遇到了最痛苦的坑。首先打war包的话我有一篇博客已经写了,可以自行查看。打war如果用maven的话就是先maven clean然后再maven install,但是这里出现了报错,报错内容我没有截取下来,大概就是: 程序包***********不存在,********找不到...
Springboot打包成war部署tomcat
基于SpringBoot的<em>项目</em>,可以直接运行main方法,在idea中进行调试开发非常方便,不用再新增<em>tomcat</em>服务,之前因为用惯了Jfinal以及SpringMVC框架,默认都是新增一个<em>tomcat</em>服务,选择<em>项目</em>,然后运行,所以下午手贱也尝试在基于maven的SpringBoot<em>项目</em>中添加<em>tomcat</em>服务调试运行,但是在网上查了好多资料,都没有看到有这方面的介绍,大多数都是如何打包成war然后...
springCloud异常运行报错
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/<em>spring</em>framework/<em>boot</em>/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'recordController' method public com.github.pagehelper.PageInfo com.dd.gateway.controller.RecordController.getParkRecordByUserId(com.dd.gateway.entity.SYParkRecord) to {[/parkRecord/getParkRecordById],methods=[POST]}: There is already 'recordController' bean method public com.github.pagehelper.PageInfo com.dd.gateway.controller.RecordController.getParkRecordById(com.dd.gateway.entity.SYParkRecord) mapped. at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1699) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[<em>spring</em>-context-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[<em>spring</em>-context-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[<em>spring</em>-<em>boot</em>-2.0.5.RELEASE.jar:2.0.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:780) [<em>spring</em>-<em>boot</em>-2.0.5.RELEASE.jar:2.0.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:412) [<em>spring</em>-<em>boot</em>-2.0.5.RELEASE.jar:2.0.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:333) [<em>spring</em>-<em>boot</em>-2.0.5.RELEASE.jar:2.0.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1277) [<em>spring</em>-<em>boot</em>-2.0.5.RELEASE.jar:2.0.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1265) [<em>spring</em>-<em>boot</em>-2.0.5.RELEASE.jar:2.0.5.RELEASE] at com.dd.gateway.GatewayApplication.main(GatewayApplication.java:18) [classes/:na] Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'recordController' method public com.github.pagehelper.PageInfo com.dd.gateway.controller.RecordController.getParkRecordByUserId(com.dd.gateway.entity.SYParkRecord) to {[/parkRecord/getParkRecordById],methods=[POST]}: There is already 'recordController' bean method public com.github.pagehelper.PageInfo com.dd.gateway.controller.RecordController.getParkRecordById(com.dd.gateway.entity.SYParkRecord) mapped. at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.assertUniqueMethodMapping(AbstractHandlerMethodMapping.java:581) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:545) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:267) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping.lambda$detectHandlerMethods$1(AbstractHandlerMethodMapping.java:252) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) ~[na:1.8.0_181] at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:250) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:219) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:189) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:136) ~[<em>spring</em>-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1758) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1695) ~[<em>spring</em>-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] ... 16 common frames omitted
Spring MVC过滤器-HttpPutFormContentFilter
Spring MVC过滤器-HttpPutFormContentFilter在Spring MVC过滤器-HiddenHttpMethodFilter中我们提到,jsp或者说html中的form的method值只能为post或get,我们可以通过HiddenHttpMethodFilter获取put表单中的参数-值,而在Spring3.0中获取put表单的参数-值还有另一种方法,即使用HttpPu...
Spring中WebApplicationInitializer的理解
    现在JavaConfig配置方式在逐步取代xml配置方式。而WebApplicationInitializer可以看做是Web.xml的替代,它是一个接口。通过实现WebApplicationInitializer,在其中可以添加servlet,listener等,在加载Web<em>项目</em>的时候会加载这个接口实现类,从而起到web.xml相同的作用。下面就看一下这个接口的详细内容。     首先打...
SpringBoot启动tomcat源码解读
一、SpringBoot自动拉起Tomcat 原文链接:http://www.studyshare.cn/blog-front//blog/details/1136 SpringBoot框架是当前比较流行的java后端开发框架,与maven结合大大简化了开发人员<em>项目</em>搭建的步骤,我们知道SpringBoot的<em>启动</em>类<em>启动</em>后,<em>tomcat</em>容器、SpringMVC、<em>spring</em>事务等第三方依赖也已...
Springboot Web应用Tomcat启动流程概述
本流程分析基于 : <em>spring</em><em>boot</em> 2.1.1 Tomcat 9.0.13 缺省配置 应用<em>启动</em>过程中Tomcat的<em>启动</em> SpringApplication#run() SpringApplication#refreshContext(context) 这里 context 是 AnnotationConfigServletWebServerApplicationContext S...
spring boot内置tomcat启动失败
新手学<em>spring</em> <em>boot</em>,改过端口,一直不行
springboot自带tomcat服务启动失败
2018-08-16 18:14:31.315 INFO 7468 --- GenQR.GenQrCodeApplication : Starting GenQrCodeApplication on
spring boottomcat启动报错
<em>spring</em> <em>boot</em>使用<em>tomcat</em><em>启动</em>bao'cuoation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext 2019-05-31 11:24:18.795 INFO 10140 --- [ost-startStop-1] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-05-31 11:24:18.811 ERROR 10140 --- [ost-startStop-1] o.s.<em>boot</em>.SpringApplication : Application run failed org.<em>spring</em>framework.context.ApplicationContextException: Unable to start web server; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loginFilterRegistration' defined in class path resource [com/itrus/ApiConfig.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[<em>spring</em>-context-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:775) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:397) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:316) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) [<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) [<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) [<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) [<em>spring</em>-web-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) [catalina.jar:8.5.3] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [catalina.jar:8.5.3] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) [catalina.jar:8.5.3] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) [catalina.jar:8.5.3] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.3] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596) [catalina.jar:8.5.3] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805) [catalina.jar:8.5.3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121] Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loginFilterRegistration' defined in class path resource [com/itrus/ApiConfig.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:235) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:226) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:101) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:88) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:261) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:185) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154) ~[<em>spring</em>-<em>boot</em>-2.1.5.RELEASE.jar:2.1.5.RELEASE] ... 21 common frames omitted Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] ... 38 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at com.itrus.ApiConfig.loginFilterRegistration(ApiConfig.java:21) ~[classes/:0.0.1-SNAPSHOT] at com.itrus.ApiConfig$$EnhancerBySpringCGLIB$$c28d0d8a.CGLIB$loginFilterRegistration$0() ~[classes/:0.0.1-SNAPSHOT] at com.itrus.ApiConfig$$EnhancerBySpringCGLIB$$c28d0d8a$$FastClassBySpringCGLIB$$3101e92b.invoke() ~[classes/:0.0.1-SNAPSHOT] at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[<em>spring</em>-core-5.1.7.RELEASE.jar:5.1.7.RELEASE] at org.<em>spring</em>framework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[<em>spring</em>-context-5.1.7.RELEASE.jar:5.1.7.RELEASE] at com.itrus.ApiConfig$$EnhancerBySpringCGLIB$$c28d0d8a.loginFilterRegistration() ~[classes/:0.0.1-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121] at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[<em>spring</em>-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] ... 39 common frames omitted Caused by: java.lang.ClassNotFoundException: org.<em>spring</em>framework.context.ApplicationContext at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_121] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121] ... 50 common frames omitted 31-May-2019 11:24:18.813 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/signingapi-0.0.1-SNAPSHOT]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.<em>spring</em>framework.context.ApplicationContextException: Unable to start web server; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loginFilterRegistration' defined in class path resource [com/itrus/ApiConfig.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:775) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:397) at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:316) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) at org.<em>spring</em>framework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) ... 10 more Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loginFilterRegistration' defined in class path resource [com/itrus/ApiConfig.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:235) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:226) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:101) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:88) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:261) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:185) at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154) ... 21 more Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.<em>spring</em>framework.<em>boot</em>.web.servlet.ServletRegistrationBean]: Factory method 'loginFilterRegistration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ... 38 more Caused by: java.lang.NoClassDefFoundError: org/<em>spring</em>framework/context/ApplicationContext at com.itrus.ApiConfig.loginFilterRegistration(ApiConfig.java:21) at com.itrus.ApiConfig$$EnhancerBySpringCGLIB$$c28d0d8a.CGLIB$loginFilterRegistration$0() at com.itrus.ApiConfig$$EnhancerBySpringCGLIB$$c28d0d8a$$FastClassBySpringCGLIB$$3101e92b.invoke() at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.<em>spring</em>framework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) at com.itrus.ApiConfig$$EnhancerBySpringCGLIB$$c28d0d8a.loginFilterRegistration() at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 39 more Caused by: java.lang.ClassNotFoundException: org.<em>spring</em>framework.context.ApplicationContext at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 50 more 31-May-2019 11:24:18.822 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying configuration descriptor C:\apache-<em>tomcat</em>-8.5.3-windows-x64\apache-<em>tomcat</em>-8.5.3\conf\Catalina\localhost\signingapi-0.0.1-SNAPSHOT.xml java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/signingapi-0.0.1-SNAPSHOT]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:730) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
Spring Boot Servlet : RegistrationBean
概述 功能介绍 Spring Boot提供的针对Servlet 3.0+容器的注册bean基类。该类的目的是用于向Servlet容器(Tomcat,Jetty等)注册工作组件,比如Servlet,Filter或者EventListener。 这是一个抽象基类,实现了接口ServletContextInitializer。ServletContextInitializer约定了当前Registrat...
SpringBoot 发布到Tomcat运行报错原因之一
IntelliJ IDEA搭建SpringBoot应用: https://www.cnblogs.com/winner-0715/p/6666302.htmlSpringBoot发布到独立的<em>tomcat</em>中运行: https://blog.csdn.net/qq_28988969/article/details/781357681、当版本号为:1.5.6.RELEASE可以以在Tomcat7中运行2...
SpringBoot-默认tomcat版本启动失败解决方法
本文介绍使用是<em>spring</em><em>boot</em>时由于默认配置的<em>tomcat</em>版本问题导致<em>启动</em><em>失败</em>的两个报错: - Unable to start embedded Tomcat - java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory 的解决方法。也是更改<em>spring</em><em>boot</em>默认<em>tomcat</em>版本的方法。 基本环境 jdk7 ...
Spring boot 自动配置 : MultipartAutoConfiguration
概述 EnableAutoConfiguration是Spring Boot的一个自动配置类,配置Spring MVC应用中如何使用MVC控制器进行错误处理。Spring MVC应用遇到错误时浏览器上看到的Whitelabel Error Page错误白页,就是在这里定义的。 因为是针对Spring MVC应用的配置机制,所以EnableAutoConfiguration必须在以下条件下才生效 :...
springboot为什么我配置了数据源仍然提示dataSource创建不成功?
<em>spring</em>: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/test713?serverTimezone=GMT username: XFour password: xuqingyuan753 org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/<em>spring</em>framework/<em>boot</em>/autoconfigure/jdbc/XADataSourceAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Unable to create XADataSource instance from 'com.mysql.jdbc.jdbc2.optional.MysqlXADataSource' at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:754) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[<em>spring</em>-context-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[<em>spring</em>-context-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[<em>spring</em>-<em>boot</em>-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:761) [<em>spring</em>-<em>boot</em>-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:371) [<em>spring</em>-<em>boot</em>-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:315) [<em>spring</em>-<em>boot</em>-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1186) [<em>spring</em>-<em>boot</em>-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1175) [<em>spring</em>-<em>boot</em>-1.4.2.RELEASE.jar:1.4.2.RELEASE] at com.xfour.AppRun.main(AppRun.java:16) [main/:na] Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Unable to create XADataSource instance from 'com.mysql.jdbc.jdbc2.optional.MysqlXADataSource' at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 20 common frames omitted Caused by: java.lang.IllegalStateException: Unable to create XADataSource instance from 'com.mysql.jdbc.jdbc2.optional.MysqlXADataSource' at org.<em>spring</em>framework.<em>boot</em>.autoconfigure.jdbc.XADataSourceAutoConfiguration.createXaDataSourceInstance(XADataSourceAutoConfiguration.java:103) ~[<em>spring</em>-<em>boot</em>-autoconfigure-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.autoconfigure.jdbc.XADataSourceAutoConfiguration.createXaDataSource(XADataSourceAutoConfiguration.java:90) ~[<em>spring</em>-<em>boot</em>-autoconfigure-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.autoconfigure.jdbc.XADataSourceAutoConfiguration.dataSource(XADataSourceAutoConfiguration.java:72) ~[<em>spring</em>-<em>boot</em>-autoconfigure-1.4.2.RELEASE.jar:1.4.2.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_112] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_112] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_112] at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[<em>spring</em>-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 21 common frames omitted
springboot 打包发布到tomcat填坑记录
大概需要几个步骤(前提在本地能正常运行) 1.首先更改pom文件中的打包的类型,确保war 2.因为<em>spring</em><em>boot</em>内置有<em>tomcat</em>,避免jar包冲突。因为在引入web模块的额时候就会引用如<em>tomcat</em>。再添加如下依赖     org.<em>spring</em>framework.<em>boot</em>     <em>spring</em>-<em>boot</em>-starter-<em>tomcat</em>     provided 3.指明
springboot 使用filter过滤器对项目中的请求参数字符串类型前后空格进行去除
pom.xml:主要jar包 &lt;parent&gt; &lt;groupId&gt;org.<em>spring</em>framework.<em>boot</em>&lt;/groupId&gt; &lt;artifactId&gt;<em>spring</em>-<em>boot</em>-starter-parent&lt;/artifactId&gt; &lt;version&gt;2.1....
ajax发送PUT请求,使用HttpPutFormContentFilter过滤器接受办法
相信在使用ajax发送put请求时候,肯定遇到过后端数据无法被接受到的405错误。 为什么会遇到这个问题? 1.首先查看Tomcat源码 关于如何将数据封装到Request public class Request implements HttpServletRequest {} //可以看出就像书中所说一样 Request实现了HttpServletRequest接口 /**...
Application run failed
Spring<em>boot</em>可以用<em>spring</em>-<em>boot</em>:run<em>启动</em>,但是不能用mainApplication<em>启动</em>. 解决: &amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.apache.<em>tomcat</em>.embed&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;<em>tomcat</em>-embed-jasper&amp;lt;/artifactId&amp;gt; ...
springboottomcat启动(三)
上面一篇博文我们说到了<em>tomcat</em>的客户化配置,在客户化配置后就进入了TomcatServletWebServerFactory的getWebServer方法, @Override public WebServer getWebServer(ServletContextInitializer... initializers) { Tomcat <em>tomcat</em> = new Tomcat()...
Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'webSocketHan
Failed to instantiate [org.<em>spring</em>framework.web.servlet.HandlerMapping]: Factory method 'webSocketHandlerMapping' threw exception; 解决方法 解决办法:改为<em>tomcat</em>8
SpringBoot 项目如何在tomcat容器中运行
SpringBoot内嵌容器的<em>部署</em>方式SpringBoot内部默认提供内嵌的<em>tomcat</em>容器,所以可以直接打成jar包,丢到服务器上的任何一个目录,然后在当前目录下执行java -jar demo.jar即可运行,但是这种方式的运行退出进程就结束了。如果想在后台可以运行,则需要执行 java -jar demo.jar > log_demo.file 2>&1 & 即可在后台运行该服务了
理解Spring Boot
理解Spring Boot作者:chszs,未经博主允许不得转载。经许可的转载需注明作者和博客主页:http://blog.csdn.net/chszsSpring Boot是一个偏执的开源框架,它可用于创建可执行的Spring应用程序,采用了习惯优于配置的方法。 此框架的神奇之处在于@EnableAutoConfiguration注释,此注释自动载入应用程序所需的所有Bean——这依赖于Spri
异常解决:java.lang.IllegalStateException: Failed to introspect Class
java.lang.IllegalStateException: Failed to introspect Class异常详情原因解决办法 异常详情 Exception encountered during context initialization - cancelling refresh attempt: org.<em>spring</em>framework.beans.factory.Unsatisfi...
Springboottomcat启动
<em>tomcat</em>下<em>启动</em>配置方法有时候小<em>项目</em>并不像每次在服务器都用命令<em>启动</em>,偷个懒难道就不能用在<em>tomcat</em>下跑起来么,当然是可以的,其实只需<em>启动</em>类继承SpringBootServletInitializer <em>启动</em>类继承SpringBootServletInitializer@RestController @SpringBootApplication //mapper 接口类扫描包配置 @MapperSc
spring boot 学习小结1 spring mvc环境搭建
<em>spring</em> <em>boot</em> 官方指导文档地址 前段时间,了解到<em>spring</em> <em>boot</em> 比较适合用来快速进行 web<em>项目</em>开发,就有了研究下该框架怎么使用的想法。在搜索相关内容方面,发现比较少,于是就自己去看官方文档,终于成功搭建了一个demo。 运行结果如下图: 下面是环境搭建的具体步骤。 1:创建一个webapp的maven<em>项目</em>,pom文件内容如下:http://
springboot-autoconfig自动配置原理
SpringBoot的<em>项目</em>一般都会有*Application的入口类,入口类中会有main方法,这是一个标准的Java应用程序的入口方法。在<em>启动</em>是<em>spring</em><em>boot</em>服务时,对象实例化时会加载META-INF/<em>spring</em>.factories文件,将该配置文件中的配置载入到Spring容器中。下面介绍自定义自动配置加载。在application.properties增加如下:server.port...
springBoot中启用事务管理
在数据库的操作中事务的重要性相信大家都知道,能够保证数据的原子性,一致性,完整性等... 使用步骤相对蛮简单,下面就直接简要介绍 <em>spring</em>Boot 中应用事务功能;一,定义/配置数据源Bean并加入<em>spring</em>容器如果使用默认的JDBC数据库连接池则只需要配置数据库的连接信息(当然相应的数据库依赖jar要引入pom.xml)即可;如果使用其它数据库连接池,如Druid,则需要定义或配置相应数据...
eclipse运行springboot报jpa中Failed to introspect Class org.springframework.data.web.config.SpringDataWe
初学<em>spring</em><em>boot</em>添加<em>spring</em>-<em>boot</em>-starter-data-jpa配置项后,运行时报以上错误,检查后久后没有解决,然后改用IDEA创建maven project添加相同的配置项后却运行成功了,检查两个pom.xml配置文件,发现IDEA创建的pom.xml配置文件自动添加了&amp;lt;parent&amp;gt; &amp;lt;groupId&amp;gt;org.<em>spring</em>framework....
Failed to introspect Class druid问题解决
报错信息 java.lang.IllegalStateException: Failed to introspect Class [com.alibaba.druid.<em>spring</em>.<em>boot</em>.autoconfigure.DruidDataSourceAutoConfigure] from ClassLoader [sun.misc.Launcher$AppClassLoader@14dad5dc]...
Spring Boot 项目发布到 Tomcat 服务器
特别说明: <em>tomcat</em>版本必须7以上,我之前就是<em>项目</em>main方法运行一切正常,但把war包<em>部署</em>到<em>tomcat</em>6上,访问就报404找不到请求的路径。第 1 步:将这个 Spring Boot <em>项目</em>的打包方式设置为 war。war这里还要多说一句, SpringBoot 默认有内嵌的 <em>tomcat</em> 模块,因此,我们要把这一部分排除掉。 即:我们在 sp
spring-boot项目部署tomcat容器中
把<em>spring</em>-<em>boot</em><em>项目</em>按照平常的web<em>项目</em>一样发布到<em>tomcat</em>容器下 一、修改打包形式 在pom.xml里设置 war 二、移除嵌入式<em>tomcat</em>插件 在pom.xml里找到<em>spring</em>-<em>boot</em>-starter-web依赖节点,在其中添加如下代码, org.<em>spring</em>framewor
SpringBoot问题(Tomcat启动失败)
异常信息如下: //这里 Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) ~[<em>tomcat</em>-embed-c
求问tomcat服务器始终无法正常运行,配置全部正确····
在度娘上按教程一步步配下来,localhost页面始终无法打开,中间在官网重下过一回<em>tomcat</em>,然后第一次测试成功打开过一会localhost,注意,仅有这一回!!!! 下面传下<em>启动</em>时的代码,有没有
tomcat 启动报错的各种解决
1.Server Tomcat v7.0 Server at localhost failed to start. 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: ...
Spring Boot ,Spring Security的Filter在Tomcat正常,部署在Weblogic 12c Filter顺序出错,导致拦截权限问题
Spring Boot使用main函数<em>启动</em>或在<em>tomcat</em>中<em>启动</em>时,Filter是按照正常的顺序执行拦截,将工程打包为war包,<em>部署</em>到weblogic上时,Filter执行顺序错乱,导致权限拦截出错。 最近公司的一个<em>项目</em>使用Spring Boot开发,前期也做了技术评估,打包成war到Tomcat和Weblogic 12c上运行,静态资源和RequestMapping访问均正常,以为万事大吉,就
springboot项目打包后部署外部Tomcat出现ErrorPageFilter异常--处理方案
前言:         近段时间,将<em>项目</em><em>部署</em>到测试环境供测试人员进行测试,结果一天后看日志,发现日志居然10多M了。唉,苦逼的去撸日志,结果发现一大堆关于JS的错误。初看还真的以为是js的错误。后来认真看才发现,开始了问题排查。国内的百度--真心垃圾,找的都是废话,也可能是我的搜索不对。逼得我五好青年科学上网,寻求方案。       注:这个错误其实不用理的,因为不会影响到服务器的正常运行,...
在ECLIPSE里调试SPRING BOOT程序TOMCAT始终启动不了,求指教
在application.properties里面无论修改 server.port: 8773 端口设为什么,都<em>启动</em>不了 *************************** APPLICATION
Spring boot 打war包在Tomcat中启动不了
环境 windows ,jdk10,<em>tomcat</em>9,<em>spring</em> <em>boot</em> 2.0, 27-Nov-2018 13:47:04.745 信息 org.apache.catalina.startup.V
SpringBoot学习(三),两种启动方式-以main方法启动和在tomcat启动
sprig<em>boot</em>既可以直接通过main方法<em>启动</em>,也可以在<em>tomcat</em>里<em>启动</em>,在main方法里<em>启动</em>很简单,直接run<em>启动</em>类的main方法就可以了。         在<em>tomcat</em>里<em>启动</em>是需要配置一下的,需要实现以下SpringBootServletInitializer         public class ServletInitializer extends SpringBootServ
spring-boot项目在外部tomcat环境下部署
<em>spring</em>-<em>boot</em><em>项目</em>在外部<em>tomcat</em>环境下<em>部署</em>
springBoot tomcat启动
Application configuration class: @ComponentScan(basePackages = "test") @EnableAutoConfiguration public class ServletInitializer extends SpringBootServletInitializer { @Override protected Spring
springboot 使用第三方tomcat 运行
将这个 <em>spring</em> Boot <em>项目</em>的打包方式设置为 war。 war 去除內嵌<em>tomcat</em> SpringBoot 默认有内嵌的 <em>tomcat</em> 模块,因此,我们要把这一部分排除掉。(注意不放在第三方<em>tomcat</em>不要去掉),可以先自测没问题,再去除,当然不去除在第三方<em>tomcat</em>下也可以运行 org.<em>spring</em>framework.<em>boot</em> s
通过Tomcat配置、启动Springboot项目war包程序
一、前言 我们都知道,在<em>启动</em><em>spring</em><em>boot</em>的程序时候,往往用命令:java -jar <em>spring</em><em>boot</em>xxx.jar来执行就可以了。为了保证程序不随着控制台的终止而停止,我们往往会用命令:nohup java -jar <em>spring</em><em>boot</em>xxx.jar & 来执行,保证服务的持续运行。 因为<em>spring</em><em>boot</em>中可以配置内嵌的<em>tomcat</em>容器。 但是如果要用服务器上安装的toma
缺省配置Springboot Web应用中tomcat启动过程
概述 独立<em>部署</em>的<em>tomcat</em>服务器的<em>启动</em>过程 传统意义上一个独立<em>部署</em>和运行的<em>tomcat</em>服务器的<em>启动</em>可以理解成两个阶段 : <em>tomcat</em> 容器本身的<em>启动</em>; <em>tomcat</em>容器中所<em>部署</em>的web app的<em>启动</em>; 完成了以上两个阶段,我们才能访问到我们所开发的业务逻辑。在这种情况下,web app的<em>部署</em>动作,通常是由系统<em>部署</em>人员通过某种方式在<em>启动</em>服务器前完成的。 <em>spring</em> bo
springboottomcat启动两次的问题
我公司在发布<em>项目</em>的时候,发现<em>spring</em><em>boot</em><em>启动</em>的时候 <em>启动</em>了两次刚开始以为是<em>tomcat</em>的问题首先:这个东西是有两个可能性的1.<em>spring</em><em>boot</em> 的内置<em>tomcat</em>没有去掉,导致<em>spring</em><em>boot</em> 和<em>tomcat</em> 分别<em>启动</em>了1次2.完全是<em>tomcat</em> <em>启动</em>了两次第一个问题:我们在<em>spring</em><em>boot</em> pom.xml中&amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;...
springboot使用外置tomcat启动
打开pom文件,把打包格式设置为war&amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;gt;SpringBoot默认有内置的<em>tomcat</em>运行模块,可以在Application(继承SpringBootServletInitializer)中直接main<em>启动</em>。如下配置可在外置<em>tomcat</em>容器中运行&amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;g...
Spring boot内嵌tomcat源码解析
阅读须知 版本:2.0.4 文章中使用/* */注释的方法会做深入分析 正文 我们知道,在使用Spring <em>boot</em>搭建web工程时,我们不需要自己搭建一个<em>tomcat</em>服务器,只需要引入<em>spring</em>-<em>boot</em>-starter-web,在应用<em>启动</em>时会自动<em>启动</em>嵌入版的<em>tomcat</em>作为应用服务器,下面我们来分析这个过程。 之前我们分析了Spring <em>boot</em>的<em>启动</em>流程和自动配置流程,而嵌入tomca...
【请教】org.springframework.web.servlet.PageNotFound - No mapping found for HTTP req
org.<em>spring</em>framework.web.servlet.PageNotFound - No mapping found for HTTP request with URI in Dispatc
Tomcat 8 解决“At least one JAR was scanned for TLDs yet contained no TLDs”问题
参考:http://stackoverflow.com/questions/24821865/<em>tomcat</em>-8-enable-debug-logging-to-list-unneeded-jars 【问题描述】 Tomcat 在<em>启动</em>过程中加载众多 jar 文件,默认会对其做 TLDs 扫描,{CATALINA-HOME}/logs/catalina.xxxx-xx-xx.log
Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefF
<em>spring</em>-<em>boot</em>初学报的错误 maven引用的包出错的机率比较大 大部分时间是导包出问题导致的
springboot2.1 引入spring-boot-starter-web时启动 报错
``` java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_191] at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191] at org.apache.<em>tomcat</em>.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) [na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.startup.Tomcat.start(Tomcat.java:398) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatWebServer.initialize(TomcatWebServer.java:106) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatWebServer.(TomcatWebServer.java:86) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:415) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540) [<em>spring</em>-context-5.1.4.RELEASE.jar:5.1.4.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:775) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:397) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:316) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1260) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1248) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at com.example.demo.DemoApplication.main(DemoApplication.java:10) [classes/:na] Caused by: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:181) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5041) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191] at org.apache.<em>tomcat</em>.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) [na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] ... 30 common frames omitted Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; at org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1178) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] ... 41 common frames omitted 2019-01-21 22:19:30.303 ERROR 30556 --- [ main] org.apache.catalina.core.ContainerBase : A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_191] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.startup.Tomcat.start(Tomcat.java:398) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatWebServer.initialize(TomcatWebServer.java:106) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatWebServer.(TomcatWebServer.java:86) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:415) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.embedded.<em>tomcat</em>.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540) [<em>spring</em>-context-5.1.4.RELEASE.jar:5.1.4.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refresh(SpringApplication.java:775) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.refreshContext(SpringApplication.java:397) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:316) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1260) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:1248) [<em>spring</em>-<em>boot</em>-2.1.2.RELEASE.jar:2.1.2.RELEASE] at com.example.demo.DemoApplication.main(DemoApplication.java:10) [classes/:na] Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) ~[na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) ~[na:1.8.0_191] at org.apache.<em>tomcat</em>.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] ... 21 common frames omitted Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_191] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] ... 30 common frames omitted Caused by: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:181) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5041) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) ~[na:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java) ~[na:1.8.0_191] at org.apache.<em>tomcat</em>.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[na:1.8.0_191] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] ... 30 common frames omitted Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; at org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1178) ~[<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [<em>tomcat</em>-embed-core-9.0.14.jar:9.0.14] ... 41 common frames omitted Disconnected from the target VM, address: '127.0.0.1:57321', transport: 'socket' 2019-01-21 22:19:30.321 INFO 30556 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-01-21 22:19:30.322 WARN 30556 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.<em>spring</em>framework.context.ApplicationContextException: Unable to start web server; nested exception is org.<em>spring</em>framework.<em>boot</em>.web.server.WebServerException: Unable to start embedded Tomcat 2019-01-21 22:19:30.322 INFO 30556 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-01-21 22:19:30.333 ERROR 30556 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call the method javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; but it does not exist. Its class, javax.servlet.ServletContext, is available from the following locations: jar:file:/C:/Program%20Files%20(x86)/JAVA/JDK/jre/lib/ext/servlet-api.jar!/javax/servlet/ServletContext.class jar:file:/C:/Mavn/maven-repository/org/apache/<em>tomcat</em>/embed/<em>tomcat</em>-embed-core/9.0.14/<em>tomcat</em>-embed-core-9.0.14.jar!/javax/servlet/ServletContext.class It was loaded from the following location: file:/C:/Program%20Files%20(x86)/JAVA/JDK/jre/lib/ext/servlet-api.jar Action: Correct the classpath of your application so that it contains a single, compatible version of javax.servlet.ServletContext Process finished with exit code 1 ``` idea生成的<em>spring</em><em>boot</em><em>项目</em>,当pom文件引入<em>spring</em>-<em>boot</em>-starter-web时 <em>启动</em>报错
[解决]org.springframework.web.util.NestedServletException: Request processing failed; nested exceptio
错误状态码500 报错内容 由图片可以看出,我是在contoller层时候出现了异常不能执行.这时候我们就要去controller层去找错误原因. 找了N久才发现声明的一个接口类中没有设置@Autowired 将接口类自动注入 这时候再次测试,还是500仔细一看异常变了 不说了继续找我的错误去!~~o(&amp;gt;_&amp;lt;)o ~~  emmmmmm,我又来了解决上边...
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误
一把来说,出现这个问题大部分是以下这几个问题: (转载https://blog.csdn.net/sundacheng1989/article/details/81630370,感谢博主的分享。) 但是在<em>spring</em>-<em>boot</em>中,有可能是mapper包放置位置的问题。 解决方法有以下两种: 1)将mapper包放到resource包下 2)在application.properties中添加:m...
Failed to introspect annotated ** org.springframework.boot.web.support.SpringBootServletInitializer
Failed to introspect annotated ** org.<em>spring</em>framework.<em>boot</em>.web.support.SpringBootServletInitializer Spring Boot应用<em>启动</em>类: @SpringBootApplication public class ApiApplication extends SpringBootServletIniti...
Springboot 启动异常--ApplicationContextException: ...missing ServletWebServerFactory bean
问题 不占用端口<em>启动</em>时,程序正常执行,下面为两种<em>spring</em><em>boot</em><em>启动</em>方式: //使用纯后台方式<em>启动</em>,不占用端口,<em>spring</em><em>boot</em>2.0以后的写法 new SpringApplicationBuilder().sources(Application.class).web(WebApplicationType.NONE).run(args); //使用web方式...
Unable to start embedded container SpringBoot启动报错
自己手动创建的一个SpringBoot工程,添加的依赖,报了这个错,然后百度没看到明显的错误: org.<em>spring</em>framework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.<em>spring</em>framework.beans.factor...
springboot-整合filter的两种方式
1.<em>spring</em><em>boot</em>通过扫描注解,@ServletComponentScan和@WebFilter实现 1.1编写FirstFilter类实现Filter接口 package com.zhong.<em>spring</em>_<em>boot</em>_filter_03.filter; import java.io.IOException; import javax.servlet.Filter; import j...
SpringBoot17-springboot的Web开发-Web相关配置
一:Spring Boot提供自动配置        通过查看WebMvcAutoConfiguration及WebMvcProperties的源码,可以发现Spring Boot为我们提供了如下的自动配置。  1,自动配置的ViewResolver 1)ContentNegotiatingViewResolver     这是Spring MVC提供的一个特殊的ViewResolver,
解决SpringBoot获取不到PUT方式提交的参数的问题
最近开发的<em>项目</em>中,使用了采用put方式更新数据记录,但是当和前端结合时,发现无法通过@NotBlank的验证器验证。一开始以为是前端同学的参数名称设置的不对,但是查阅资料后发现是SpringBoot配置有些问题。下面是详述。一、问题名称:SpringBoot获取PUT方式提交参数为空二、开发环境:SpringBoot 1.5.7 + Vue.js 2三、解决方法:在WebMvcConfig中添加一...
第一次启动springboot
第一次集成<em>spring</em><em>boot</em>的心酸历程
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
MATLAB软件在CDMA通信仿真中的应用下载
MA TLAB 因具有强大的数学计算、算法推导、建模仿真和图形绘制等功能 而广泛应用于各领域, 误码率是CDMA 无线通信系统的重要性能指标。文章利用 MA TLAB 的M 语言进行编程、仿真, 从而对CDMA 无线通信系统的性能进行了分 析。 相关下载链接:[url=//download.csdn.net/download/humourwang/2320080?utm_source=bbsseo]//download.csdn.net/download/humourwang/2320080?utm_source=bbsseo[/url]
liquidlnf_2.9.1-7皮肤下载
不错的皮肤。全体控件色彩控制,布局管理等等 相关下载链接:[url=//download.csdn.net/download/yuansiwen198511/2566980?utm_source=bbsseo]//download.csdn.net/download/yuansiwen198511/2566980?utm_source=bbsseo[/url]
强大的画图工具jude 3.0.rar下载
这是一个很有用的画图工具,特别是做java开发的朋友们,这对你们很有用 相关下载链接:[url=//download.csdn.net/download/xiaoshihenmei/2510382?utm_source=bbsseo]//download.csdn.net/download/xiaoshihenmei/2510382?utm_source=bbsseo[/url]
相关热词 c# 识别回车 c#生成条形码ean13 c#子控制器调用父控制器 c# 写大文件 c# 浏览pdf c#获取桌面图标的句柄 c# list反射 c# 句柄 进程 c# 倒计时 线程 c# 窗体背景色
我们是很有底线的