java - idea里創(chuàng)建多modules模塊引用spring boot報錯
問題描述
<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/maven-v4_0_0.xsd'> <parent><artifactId>awbeci-app</artifactId><groupId>com.awbeci</groupId><version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>awbeci-web</artifactId> <packaging>war</packaging> <name>awbeci-web Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies><dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope></dependency><dependency> <groupId>com.awbeci</groupId> <artifactId>awbeci-utils</artifactId> <version>1.0-SNAPSHOT</version></dependency> </dependencies> <!--這里是我加的sping boot引用,但是報錯了,如何解決? --> <parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.5.4.RELEASE</version> </parent> <dependencies><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency> </dependencies> <build><finalName>awbeci-web</finalName> </build></project>


問題解答
回答1:<parent>
<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version></parent>刪了就行了
相關(guān)文章:
1. javascript - sublime快鍵鍵問題2. javascript - immutable配合react提升性能?3. vue.js - Vue 如何像Angular.js watch 一樣監(jiān)聽數(shù)據(jù)變化4. javascript - 移動端上不能實現(xiàn)拖拽布局嗎?5. 實現(xiàn)bing搜索工具urlAPI提交6. javascript - react native在run-android時出現(xiàn)這個錯誤該怎么解決?大神賜教7. javascript - 如何判斷不同兩個對象觸發(fā)同一事件?8. thinkPHP5中獲取數(shù)據(jù)庫數(shù)據(jù)后默認選中下拉框的值,傳遞到后臺消失不見。有圖有代碼,希望有人幫忙9. javascript - ios返回不執(zhí)行js怎么解決?10. index.php錯誤,求指點

網(wǎng)公網(wǎng)安備