java - idea里创建多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>删了就行了
相关文章:
1. html - 谁能推荐一个类似apple官网的模板,用来展示产品的?2. javascript - 关于微信公众号开发的一个trouble!3. ueditor上传服务器提示后端配置项没有正常加载,求助!!!!!4. web前端是做什么的5. 冒昧问一下,我这php代码哪里出错了???6. css - 百度Ueditor富文本编辑器初始化赋值font-size没有值?7. c++ - win764位环境下,我用GCC为什么指针占8个字节,而long是4个字节?8. 找一个权威、实战的微信扫码授权登录网站的开发教程或者文章9. PHP订单派单系统10. 用工具实现在微信里面生成带二维码的海报?