Self learning note 1: creating and building spring boot project through intellij idea

Thank you for your posts https://blog.csdn.net/typa01_kk/article/details/76696618 , but there are some differences. Please look down

On the basis of predecessors, I write about the differences in my current version

I. intellij idea version

My version is as follows

II. jdk version

Third, the differences under the project metadata page

Here, my Java version only has 8 and 11. I choose 8, which is determined according to the jdk in the previous step. But now, except for Java 11, if you are installing a small partner of Java 11, you should choose 11

IV. spring boot version

This drop-down has these, because I don't know what the difference is, it defaults to 2.1.3

V. pom.xml file generated automatically

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.3.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

 

Keywords: Spring Java Maven Apache

Added by inferium on Thu, 05 Dec 2019 11:26:09 +0200