文章詳情頁
IDEA 中創(chuàng)建SpringBoot 父子模塊的實現(xiàn)
瀏覽:22日期:2023-03-18 11:22:03
新建父級項目
父級模塊添加完成!
添加子模塊在父級模塊又擊 選擇 new ==> Moudule
創(chuàng)建方式與父級模塊創(chuàng)建大致一致,唯一不同的是將 Type 改為 Maven Project
打開父級項目 demo-parent 下的pom.xml 文件復(fù)制以下三行配置信息
打開子項目 demo-son 下的pom.xml文件將parent 節(jié)點(diǎn)下的前三行代碼替換成為剛剛復(fù)制的那三行,如下顯示
最后,在demo-parent 模塊下 的pom.xml文件下新建modules節(jié)點(diǎn),并添加子模塊
<modules><module>demo-son</module> </modules>
至此,父子模塊搭建完成 demo-son 的父級模塊為demo-parent ,而demo-parent 擁有了一個子模塊 demo-son
到此這篇關(guān)于IDEA 中創(chuàng)建SpringBoot 父子模塊的實現(xiàn)的文章就介紹到這了,更多相關(guān)SpringBoot 父子模塊創(chuàng)建內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
標(biāo)簽:
Spring
上一條:SpringBoot整合阿里云OSS對象存儲服務(wù)實現(xiàn)文件上傳下一條:SpringBoot集成Spring security JWT實現(xiàn)接口權(quán)限認(rèn)證
相關(guān)文章:
排行榜
