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

一键查看最优答案

确认一键查看最优答案?
本功能为VIP专享,开通VIP获取答案速率将提升10倍哦!
Bbs1
本版专家分:18
结帖率 62.5%
Bbs1
本版专家分:50
Caused by: java.lang.ClassNotFoundException: org.springframework.web.filter.FormContentFilter
java.lang.IllegalStateException: Error processing condition on org.<em>spring</em>framework.<em>boot</em>.autoconfigure.jdbc.DataSourceAutoConfigurationPooledDataSourceConfigurationatorg.<em>spring</em>framework.<em>boot</em>.autoconfig...
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...
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启动访问页面报错
Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Thu Nov 16 15:47:01 CST 2017 There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not supported
springboot項目部署tomcat启动错误
正好遇到有2个问题。1、把<em>项目</em><em>部署</em>到webapps下,然后<em>启动</em>,<em>tomcat</em>会解压<em>项目</em>,但很快<em>启动</em>完成,没报错,像没加载解压的<em>项目</em>。而把<em>项目</em>打成jar包,用自带的内置<em>tomcat</em>则没问题。解决方法,在<em>spring</em><em>boot</em> <em>启动</em>内中没有继承SpringBootServletInitializer,并重写 configure方法。这个抽象类的详细作用可以参考 https://blog.csdn.net...
常见的springboot项目启动失败,但是没有任何错误信息的解决办法
公司用的<em>spring</em><em>boot</em>,随着<em>项目</em>的不断庞大,经常会出现一些稀奇古怪的问题,其实多半是配置文件有问题,但是没有错误提示信息,就很是难受,无从下手,以下列举一些自己遇到的常见的问题处理办法: 案例1. <em>项目</em><em>启动</em>,控制台只打印了SPRING的日志,然后自动停止,如截图所示: 这种什么错误信息都没有,也是醉了,其实遇到这种情况,可以把<em>启动</em>方法try catch起来即可在控制台显示错误信息...
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>时你
出现org.springframework.boot.SpringApplication:771 - Application startup failed 问题的解决
今天<em>启动</em><em>项目</em>,idea用<em>spring</em>b <em>启动</em>的,出现了错误 ERROR 2019-01-26 15:33:46 [restartedMain] org.<em>spring</em>framework.<em>boot</em>.SpringApplication:771 - Application startup failed org.<em>spring</em>framework.beans.factory.UnsatisfiedDep...
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
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...
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然后...
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)}
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...
Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefF
<em>spring</em>-<em>boot</em>初学报的错误 maven引用的包出错的机率比较大 大部分时间是导包出问题导致的
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.指明
org.springframework.boot.SpringApplication - Error handling failed
2018-04-20 13:17:04.603 DEBUG org.<em>spring</em>framework.beans.factory.support.D efaultListableBeanFactory
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....
org.springframework.boot.SpringApplication- Application run failed
记录傻逼的问题的时刻终于又到了,好开心 场景还原: 后台管理系统是单一的<em>spring</em>Boot <em>项目</em> 前台是<em>spring</em>Cloud的<em>项目</em> 现在想把 <em>boot</em> 融入到 cloud 中,作为一个单独的微服务去管理 融入以后,<em>启动</em>发现 org.<em>spring</em>framework.<em>boot</em>.SpringApplication- Application run failed 网上...
Spring无法加载问题:org.springframework.web.servlet.DispatcherServlet。。。
Spring版本为:<em>spring</em>-framework-3.2.2.RELEASE 错误信息如下: SEVERE: Servlet /CMS threw load() exception java.la
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()...
idea spring boot启动 Application startup failed 和 Unable to start embedded container错误
今天遇见一个蛋疼的bug,开发中的<em>项目</em>公司电脑运行没问题,然后今天我换了台新电脑,导完<em>项目</em>之后自觉一切配置都没问题,可是无论如何都<em>启动</em>不了<em>项目</em> 该<em>项目</em>是<em>spring</em> <em>boot</em> 的<em>启动</em>方式,使用eclipes<em>启动</em>毫无问题,但是idea总是<em>启动</em>到这里报这种错误,错误完整日志如下  [2018-08-08 14:01:17,323][restartedMain][ERROR][org.<em>spring</em>...
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内嵌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...
求问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: ...
springboot 项目tomcat失败,求解
2017/12/28-21:13:32 INFO org.<em>spring</em>framework.integration.mqtt.inbound.MqttPahoMessageDrivenChannelAd
spring boot 用war包部署tomcat下详细教程(解决缺少web.xml报错的问题)
1.首先 修改pom.xml下的打包方式war2.添加servlet-api依赖 javax.servlet javax.servlet-api 3.1
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
将SpringBoot部署到Tomcat下
需要资源:SpringBoot<em>项目</em>,Tomcat注意内容:使用的是SpringBoot2.0,在<em>部署</em>的时候需要el-api.jar的版本号为3.0。否则在<em>启动</em>的时候会出现以下错误。推荐使用<em>tomcat</em>8及以上版本(当然也可以替换<em>tomcat</em>中的el-api.jar为3.0版本的)Caused by: java.lang.NoClassDefFoundError: javax/el/ELManage...
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,则需要定义或配置相应数据...
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运行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
第一次集成<em>spring</em><em>boot</em>的心酸历程
常规容器下SpringBootServletInitializer如何实现web.xml作用解析
在之前的《使用jsp作为视图模板&常规<em>部署</em>》章节有过一个实践,需要<em>启动</em>类继承自SpringBootServletInitializer方可正常<em>部署</em>至常规<em>tomcat</em>下,其主要能够起到web.xml的作用。下面通过源码简单解析为何其能够替代web.xml。 本章概要 1、源码分析如何实现SpringBootServletInitializer整个加载过程; 2、实现自定义WebAppl
Spring4中的WebApplicationInitializer理解
XML-based Approach要配置核心分发控制器Servlet,即DispatcherServlet,传统做法是直接使用xml进行配置,如下代码所示: dispatcher org.<em>spring</em>framework.web.servlet.DispatcherServle
SpringBoot 启动服务器失败 报错 spring-boot Failed to start component [StandardServer[-1]]
2017-08-9 13:45:06,131 [ERROR] [main] [org.<em>spring</em>framework.<em>boot</em>.SpringApplication.run(SpringApplication.java:339)] Application startup failed org.<em>spring</em>framework.context.ApplicationContextException: Un
spring-boot项目启动失败的一种解决办法:自带的tomcat容器切换成jetty容器
按照<em>spring</em>-<em>boot</em>官方的demo例子好像搭建一个<em>spring</em>-<em>boot</em>工程非常简单,但是环境的差异导致工程<em>启动</em><em>失败</em>,这却让人异常蛋疼! 比如刚开始使用下面这个配置<em>启动</em>就挂了,在自己本地环境<em>启动</em>直接<em>失败</em>报红叉: <em>spring</em>-<em>boot</em>使用自带<em>tomcat</em>容器的配置:
在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;...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码<em>部署</em>服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
Linux(服务器编程):15---两种高效的事件处理模式(reactor模式、proactor模式)
前言 同步I/O模型通常用于实现Reactor模式 异步I/O模型则用于实现Proactor模式 最后我们会使用同步I/O方式模拟出Proactor模式 一、Reactor模式 Reactor模式特点 它要求主线程(I/O处理单元)只负责监听文件描述符上是否有事件发生,有的话就立即将时间通知工作线程(逻辑单元)。除此之外,主线程不做任何其他实质性的工作 读写数据,接受新的连接,以及处...
将文件隐藏在图片中下载
将文件隐藏在图片中 相关下载链接:[url=//download.csdn.net/download/titanaly/4075272?utm_source=bbsseo]//download.csdn.net/download/titanaly/4075272?utm_source=bbsseo[/url]
后台管理系统下载
SpringMVC Mybatis LigerUI来开发, 单点登录(单点登录需要下载我上传的另外一个项目,叫做CYSD-cas,两个项目同时运行才行)。这个后台管理系统功能比较多,就不一一详述了。 相关下载链接:[url=//download.csdn.net/download/u011966169/8958829?utm_source=bbsseo]//download.csdn.net/download/u011966169/8958829?utm_source=bbsseo[/url]
gradle-2.3.2下载
解压后内含gradle-2.3.2.jar gradle-2.3.2.pom 文件 复制至X:\XX\gradle\m2repository\com\android\tools\build\gradle 使用 相关下载链接:[url=//download.csdn.net/download/yc456789/10571784?utm_source=bbsseo]//download.csdn.net/download/yc456789/10571784?utm_source=bbsseo[/url]
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率
我们是很有底线的