idea創(chuàng)建SpringBoot項目時Type選maven?project和maven?pom有何區(qū)別
1)打開idea,開始創(chuàng)建SpringBoot項目
2)選擇 Spring Initializr ,選擇合適的jdk版本,點擊Next
在操作到Type選項時有四種項目類型可供選擇:
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和4只創(chuàng)建對應(yīng)的配置文件(pom.xml / gradle.build);
1和3在創(chuàng)建配置文件之外還會創(chuàng)建Spring Boot項目中的一些常規(guī)文件(SpringBootApplication 類和對應(yīng)的代碼結(jié)構(gòu))。
也就是說:
選擇project的話,它會幫你生成整個完整的工程結(jié)構(gòu);
選擇pom的話,它只會在工程目錄下生成pom.xml,而沒有src等等結(jié)構(gòu)。
總結(jié)
到此這篇關(guān)于idea創(chuàng)建SpringBoot項目時Type選maven project和maven pom有何區(qū)別的文章就介紹到這了,更多相關(guān)maven project和maven pom區(qū)別內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Springboot 實現(xiàn)數(shù)據(jù)庫備份還原的方法
這篇文章主要介紹了Springboot 實現(xiàn)數(shù)據(jù)庫備份還原的方法,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-09-09

JPA如何使用nativequery多表關(guān)聯(lián)查詢返回自定義實體類

SpringMVC核心DispatcherServlet處理流程分步詳解

Java?Bean轉(zhuǎn)Map的那些踩坑實戰(zhàn)

@MapperScan和@ComponentScan一塊使用導(dǎo)致沖突的解決

SpringSecurity+JWT實現(xiàn)前后端分離的使用詳解