Are you equipped with the two necessary equipment for domestic Java developers?

Although more and more domestically produced excellent technical products have gone out of the country, for developers in many fields, they are still very dependent on various basic resources abroad. Therefore, some basic network skills have always been what we need to master, but speed and stability issues have always troubled everyone.

So, today I recommend two speeding artifacts to all Java developers: Maven's domestic mirror and Spring's domestic scaffolding!

Maven's domestic mirror

Official website address : maven.aliyun.com/

For every Java development, the situation of not being able to pull dependencies must have been encountered. Therefore, it is strongly recommended that you install Ali's domestic mirror when installing the development environment to save unnecessary trouble in the future.

The configuration method is very simple, you only need to find the Maven setting.xmlfile, and then add the Alibaba Cloud warehouse configuration in the mirror configuration, as follows:

<mirrors>

    <mirror>
        <id>aliyunmaven</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库</name>
        <url>https://maven.aliyun.com/repository/public</url>
    </mirror>

</mirrors>  复制代码

Spring's domestic scaffolding

Official website address : start.aliyun.com/

Spring's domestic scaffolding is a customized version of Spring Initializr recently released by Alibaba Middleware. Thanks to the friendly Chinese and smooth speed, it has been concerned and spread by developers.

Java developers using Spring can easily create a basic Spring Boot project through this interface, and introduce various Spring Boot Starter components or various functions of Spring Cloud that you need.

In addition, in fact, we can also use it in IDEA's new project to speed up the original creation method. The operation is very simple and only requires the following two steps:

Step 1 : Select "File"-"New"-"Project ..." from the menu

Step 2 : Select "Spring Initializr" in the project type on the left. On the right, you can see that the model uses the official Spring scaffolding address. We only need to select custom, then fill in https://start.aliyun.com/, and click "Next"!

You're done! In the subsequent creation guidelines, it is exactly the same as the original operation, but the metadata acquisition and generation process of the components of the project has no longer passed the official website address abroad, but has been closer to us and better service start.aliyun.com.

These environments are all done, isn't it great? Then you can start learning! Finally, I recommend two tutorials that I maintain for a long time:

Guess you like

Origin juejin.im/post/5e907c21518825737a315455