This is the 8th day of my participation in the November Gwen Challenge. Check out the event details: The last Gwen Challenge 2021

Author’s other platforms:

| CSDN:blog.csdn.net/qq_4115394…

| the nuggets: juejin. Cn/user / 651387…

| zhihu: www.zhihu.com/people/1024…

| GitHub:github.com/JiangXia-10…

| public no. : 1024 notes

This article is about 1,120 words and takes six minutes to read

As a Programmer engaged in Java development, I cannot do without the help of IDE every day. At the beginning of learning Java, I basically used Eclipse for development. Later, WHEN I came into contact with IDEA, I found it really delicious. It is much easier to use than Eclipse and can greatly improve the efficiency of development.

Maven is a software project management tool based on the POM Project Object Model (POM) that manages project builds, reports, and documentation with a short description (configuration).

Maven’s core function is to properly state dependencies between projects, and to obtain jar packages through the configuration of the POM.xml file, rather than manually adding various JAR packages. If you need to use POM.xml to obtain the JAR package, you need to create the project as maven project. Maven project is essentially a Java project and a Web project wrapped with Maven layer. But once you’ve wrapped Maven, you can use some of the functionality maven provides.

When creating a Maven project with IDEA, consider resolving dependencies… This may be due to the fact that the jar package may not be downloaded remotely because the image is not set up, or it may be due to network problems. ArchetypeCatalog = internal can be added to the Properties pane when creating the Maven project. Configuration is as follows

archetypeCatalog
internal
Copy the code

Add a dependency to your POM file after the project has been created. Add a dependency to your POM file. Add a dependency to your POM file. Maven can set the path and configuration in Settings as follows:

Add parameters in VM Options

-DarchetypeCatalog=internal
Copy the code

– The DarchetypeCatalog parameter is used to specify where the archetype-catalog. XML file is obtained. The optional values are: remote, internal, local, etc. If not set, remote will be used by default. As there are too many archetypes in the remote central repository, it is very slow to load from the remote network, which is also the reason why it was stuck here before.

Settings specifies the configuration of the current project. If you set global Settings, perform the preceding Settings in other Settings and the Settings take effect for other projects.

Add your maven project to the following list: Considerations dependencies… The problem.

Other recommendations:

  • Spring annotation (3) : @scope sets the scope of the component
  • Spring is worth your collection!!
  • Spring annotation (7) : Assign attributes to beans using @value
  • SpringBoot develops Restful interfaces to implement CRUD functions
  • Spring Note (6) : Four ways to customize initialization and destruction methods during the Bean’s life cycle