Hot deployment of springboot project and solutions to hot deployment failure


OnestayIDEAOn the rightSpringBootMethods of hot deployment

staypom.xmlinOf In labelAdd the following configuration




Then clickIDEAOfFile-Settings


And then find outCompiler, check aboveBuild project automatically, and then clickOKsign out


Then pressShift+Ctrl+Alt+/, pop up small box, selectRegistry


And then find tick it, and then clickclosesign out


After completing the above steps, the hot deployment should be completed normally. If you modify the class or some static resources (such ashtml), you can update the content without restarting.


2、 Hot deployment failure and solution


After the deployment was completed, I found that it was not successful, and then I opened itpom.xmlAn error is reported in red, and the error contents are as follows:

Failed to read artifact descriptor for org. springframework boot: spring-boot-devtools jar: 2.3.3. RELEASE

The question isjarThe package may have failed to download due to network problems, so the hot deployment failed.


With the most direct way, to your local warehouse to download the failurejarDelete the package, and then letmavenJust download it again (but only if you make sure that there is no problem with your network, otherwise the download will not succeed all the time when there is a problem)

How to find the corresponding download failurejarWhere’s the bag? The method is as follows

Go to your local warehouse and find the following location:

Your local warehouse location(in fact, go to your local warehouse and find it according to the string of characters behind the error messagejarPackage location)

For example, where is my local warehouseDDiscalrepositoryThen the address is:


Then delete all the files in the directory, and letMavenAutomatically download from the InternetjarJust a bag.


3、 Summary

Finally, according to this problem also summarizes a solution to related problems. Ifpom.xmlReport error and promptFailed to read artifact descriptor for xxxxxxxx.jarThis kind of information, then generally isjarIf there is a problem with the package (for example, the download fails), you can use this method to delete it directly, and then let it downloadMavenIn most cases, downloading again will solve the problem.


Recommended Today

Review of SQL Sever basic command

catalogue preface Installation of virtual machine Commands and operations Basic command syntax Case sensitive SQL keyword and function name Column and Index Names alias Too long to see? Space Database connection Connection of SSMS Connection of command line Database operation establish delete constraint integrity constraint Common constraints NOT NULL UNIQUE PRIMARY KEY FOREIGN KEY DEFAULT […]