preface
In the daily development process, it is common to encounter the exception that the class file cannot be found, but the class does exist in the project, which is called the package dependency conflict problem.
Conflict problem
The sample project introduces two versions of Fastjson.jar, respectively
Fastjson: 1.2.28 fastjson: 1.2.3Copy the code
For example, when we need to use 1.2.28 total class, such as class A, but in the new version, this class is removed, but when allocating, we find this package exists, which package is it? Using this plugin, you can directly solve the problem of maven conflict in idea with one click.
Amway plug-in
The amway plugin here is called Maven Helper
To solve the problem
The first step
Installing a plug-in
The second step
After the installation is complete, this will appear below the POM file
The third step
Clicking in will take you to something like eclipse
The fourth step
Select the conficts option, which means to filter all conflicting packages
Step 5
The example here conflicts with Fastjson as shown below
Step 6
Right-click and exclude to remove the related version. Can automatically remove.
Source: Xiaoming Vegetable Market
Recommended reading
Low will know will be | about Redis cache these three problems, will be will be
Low collection | necessary explanation | please don’t use the low efficiency of the I/O, don’t try this I/O
Clear | saw this article, distributed years don’t understand things, finally understand!
Recommendation | as the IDEA of die-hard powder, such Settings, effect pops the dalai!
Low abnormal | please don’t write full screen try-catch again, with the exception? – Smuggling. – Line testing
End
If you feel light feather articles are helpful to you, please in WeChat search and focus on “light feather IT hut” * * * * WeChat public, I will be here to share the computer information technology knowledge, theory, tools, resources, development of software is introduced, the back-end, interview, work feeling, and some thoughts of life and a series of articles. All you see and see is life. Take it slow, work hard, you and I grow together…