In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to solve the popularity of Maven import dependency". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Question 1:
A lot of dependence is popular.
Delete the dependent files and redirect them.
Find the location of the dependent package
Delete all the contents under the local repository path and re-import them into maven
Question 2:
In pom.xml
Org.springframework.boot spring-boot-maven-plugin 2.5.2
Explode red
Lack of dependency, just add dependency
Org.springframework.boot spring-boot-maven-plugin 2.5.2 question 3: run the program, Springboot cannot start
Enter on the command line
Mvn spring-boot:run
Spring pattern appears after running
Problem 4:Springboot built-in Tomcat server cannot be started
Decision: C:\ Users\ Administrator.m2\ repository\ org\ apache\ tomcat\ embed
Delete all files in this directory, and then right-click the project maven- > update project
Other similar discovery classNotFound can also be solved by finding the corresponding jar package in the local warehouse location and using the same operation.
Problem 5:devtools does not respond
Normal is
When the developer introduces spring-boot-devtools into the project, the project will restart automatically whenever there is a change in the classpath path, which greatly improves the development speed of the project. If the developer uses Eclipse, the project will automatically compile the well to trigger a restart after the code has been modified and saved, while if the developer uses IntelliJ IDEA, it will be manually compiled by the developer to trigger the restart. When compiling manually, click the Build-> Build Project menu or press the Ctrl+F9 shortcut to compile, and the project restart will be triggered when the compilation is successful. Of course, using IntelliJ IDEA developers can also configure the automatic compilation of the project, configuration steps:
Click the File-> settings menu, open the settings page, find Build,Execution,Deployment-> Compile in the menu bar on the left, and check Build project automatically as shown.
This is the end of the content of "how to solve the problem of Maven import dependency". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.