Home>Article>Java> What is the difference between Type selection maven project and maven pom when creating a SpringBoot project with idea?

What is the difference between Type selection maven project and maven pom when creating a SpringBoot project with idea?

PHPz
PHPz forward
2023-05-16 16:52:06 1747browse

1) Open the idea and start creating the SpringBoot project

What is the difference between Type selection maven project and maven pom when creating a SpringBoot project with idea?

##2) Select Spring Initializr, select the appropriate jdk version, and click Next

What is the difference between Type selection maven project and maven pom when creating a SpringBoot project with idea?

There are four project types to choose from when operating the Type option:

Maven Project (Generate a Maven based project archive) Maven POM (Generate a Maven pom.xml) Gradle Project (Generate a Gradle based project archive) Gradle Config (Generate a Gradle build file)

2 and 4 only create corresponding configuration files ( pom.xml / gradle.build);

1 and 3 will also create some regular files in the Spring Boot project (SpringBootApplication class and corresponding code structure) in addition to creating configuration files.

That is to say:

If you select project, it will help you generate the entire complete project structure;

If you select pom, it will only generate pom in the project directory. .xml, without src and other structures.

The above is the detailed content of What is the difference between Type selection maven project and maven pom when creating a SpringBoot project with idea?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete