Comments (2)
该项目为非web项目,使用了spring-boot-starter,导致我在idea中maven打包,会默认打出一个spring-invoke-start的jar,启动项目的时候,也会加载该jar。导致项目启动时,一直报错要找EnableSpringMvcRequestMapping这个类,麻烦在加载时判断项目是否含有这个类在做后续的操作。最终通过debug才找到是加载了spring-invoke-start下面的spring.factories这个才引起的错误。 16:17:37.767 [main] ERROR o.s.b.SpringApplication - [reportFailure,818] - Application run failed java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext at com.hxl.plugin.scheduledinvokestarter.components.spring.controller.EnabledSpringMvcRequestMapping.canSupport(EnabledSpringMvcRequestMapping.java:17) at com.hxl.plugin.scheduledinvokestarter.components.ComponentLoader.run(ComponentLoader.java:58) at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:765) at org.springframework.boot.SpringApplication.lambda$callRunners$2(SpringApplication.java:749) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:744) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1289) at com.shsany.EdgeApplication.main(EdgeApplication.java:16)
很厉害,能定位到具体的jar,确实是这个引起的,没有测试过非web项目,这个我会优先兼容,可以在设置中禁用动态刷新技术。
from cool-request.
已修复
from cool-request.
Related Issues (20)
- 采用@RequestMapping没有指定RequestMethod时扫描不到该api,http窗口和代码无法互相跳转定位 HOT 1
- 使用问题报告 HOT 1
- 批量复制http url优化 HOT 1
- GET请求参数传递有点问题 HOT 4
- trace功能失效啦 HOT 1
- [Feature]可否增加MQ的调用 HOT 2
- 纯属好奇,这个插件更牛逼在哪 HOT 6
- 将apifox的秘钥填入,报错invalid Token
- 反射调用失败 HOT 3
- 可不可以整个为全部环境配置请求头的地方 HOT 2
- 请求报文的编码格式可以调整为utf-8吗? HOT 2
- com.intellij.diagnostic.PluginException HOT 6
- 关于Call方法的问题 HOT 3
- 关于返回结果转义显示 HOT 2
- 静态扫描不支持kotlin的controller的扫描 HOT 1
- Api视图展示优化,文件夹展开支持合并,减少层级 HOT 2
- controller由接口实现,点击请求图标入参有body没有生成json参数 HOT 2
- 导入到apifox报错(java.lang.Throwable: Write-unsafe context! ) HOT 1
- IntelliJ IDEA 2023.3.4 (Community Edition) 使用报错 HOT 3
- 非web项目启动时,启动项目后,插件报错会导致项目异常, HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cool-request.