Installing MAVEN and spring boot in eclipse

Source: Internet
Author: User

Installing MAVEN and spring boot in eclipse

1. Open Help->install new software

2. Point Add,name (Maven), location (http://download.eclipse.org/technology/m2e/releases), Ok,select and next to the installation, wait for the installation to complete.

3. Create a new MAVEN project

File->new->project, select Maven Project

Next to

Enter the Artifact ID (project name), group ID (project domain name, com. XXX), Finish.

4. Click Pom.xml under Pom.xml-> to insert the code below in the corresponding location.

<!--set Maven's JDK version to 1.8
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

5. Enter http://projects.spring.io/spring-boot/, copy the following code, and insert it into the corresponding position of the pom.xml.

Note Change the version to 1.5.1,

Save Pom.xml

6. Create a new class under this directory, named Samplecontroller

7. Enter http://projects.spring.io/spring-boot/, insert code

Save, right-click the code area and select Run As->java application.

8. Open the browser input http://localhost:8080/, the Hello world! appears Complete.

Installing MAVEN and spring boot in eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.