当前位置:网站首页>Project compilation nosuch*** error problem
Project compilation nosuch*** error problem
2022-07-28 06:41:00 【Yandun】
When compiling a project, do well , How to report all kinds of NoSuch***Error, Guess it might be jar Package conflict , But with which jar There's a conflict with the package .
key word :jar Packet collision ,NoSuchFileldError,NoSuchMethodError
Look carefully at the following tips, such as :

hinder javax.sevlet Corresponding jar Package and other dependencies in the project jar The package conflicts , Find the warehouse and delete , perhaps maven Apply exclusion , as follows :
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
<version>2.0.1.RELEASE</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>Recommend the latter , Because the former has network or maven When connecting to private server , When using mvn clean install when , You'll download it again , The conflict reappears .
边栏推荐
猜你喜欢

万字归纳总结并实现各大常用排序及性能对比

二维数组实战:螺旋矩阵

SSAO By Computer Shader(三)

SSAO By Computer Shader(一)

What is the best and most cost-effective open headset recommended

Leetcode brush question diary sword finger offer II 048. serialization and deserialization binary tree

七夕送女朋友什么礼物好?不会送礼的男生速看!

What is hash? (development of Quantitative Trading Robot System)

Battle plague Cup -- strange shape
![[basic knowledge of binary tree]](/img/4f/9fc27a30b958af26537c299e150ee9.png)
[basic knowledge of binary tree]
随机推荐
[PTA--利用队列解决猴子选大王问题】
Leetcode brush questions diary sword finger offer II 047. Binary tree pruning
Feignclient @requestmapping parameter setting and simple method setting of request header
OJ 1505 fuse
SSAO By Computer Shader(二)
OJ 1020 minimum palindromes
【动态规划--买卖股票的最佳时期系列】
OJ 1129 fraction matrix
STM32的IAP跳转相关bug经历
OJ 1020 最小的回文数
Redhawk Dynamic Analysis
OJ 1507 删数问题
浮点型数据在内存中如何存储
valgrind工具
js 变量等于0也等也' '问题
【C语言】动态内存管理
【动态规划--买卖股票的最佳时期系列3】
redis实现分布式锁思路及redission分布式锁主流程分析
2022-05-24 use of spiel
[PTA----输出全排列]