Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServl
来源:互联网 发布:淘宝店招素材免费下载 编辑:程序博客网 时间:2024/06/07 12:29
两种解决方式:
以Application方式启动,在pom中把tomcat的scope改为compile
<!-- tomcat 的支持.--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>compile</scope> </dependency>
以spring-boot:run(maven方式)方式启动工程
(IDEA工具)
- Run–》Edit Configurations–》+—》选择Maven–》配置命令为spring-boot:run
- 右上角选择启动方式
=========================================================
下面说一下主要造成原因,因为我们直接运行application类,而我们的servlet-api等依赖tomcat的库的scope为provide,所以我们的tomcat的scope需要改为compile
以spring-boot:run方式启动相当于直接部署工程到tomcat中,所以tomcat的scope为provide也不会影响
阅读全文
0 0
- Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServl
- Failed to introspect annotated ** org.springframework.boot.web.support.SpringBootServletInitializer
- springboot 启动报错 java.lang.IllegalStateException: Failed to introspect annotated methods on class org
- Error creating bean with name 'multipartResolver': Failed to introspect bean class [org.springframew
- DefaultHandlerExceptionResolver : Failed to convert request element: org.springframework.web.method.
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.3.3.RELEASE
- Springboot | Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.0
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage (de
- SecurityMetadataSourc does not support secure object class: org.springframework.security.web.Filter
- org.springframework.web.servlet.mvc.support.RedirectAttributes
- org.springframework.web.context.support.XmlWebApplicationContext
- org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file
- org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file
- Failed to instantiate [org.springframework.data.domain.Pageable]: Specified class is an interface
- Failed to instantiate [org.springframework.data.domain.Pageable]: Specified class is an interface
- Failed to convert value of type 'java.lang.String' to required type 'org.springframework.web.multipa
- 深度学习的教学和课程,与传统 CS 的教学和课程有什么区别?
- 牛人的大学生活
- Python3
- 22号
- CTS测试框架 -- V2版本
- Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServl
- spring技术详解
- vue build打包之后首页白屏的问题
- ASP.NET Core Web API下事件驱动型架构的实现(一):一个简单的实现
- 闲话权限系统的设计
- svn
- Django源码分析3:处理请求wsgi分析与视图View
- JetClean绿色破解版下载及软件破解教程
- 观察者模式和监听模式