Sprint Boot项目无法includeFlat另一个Spring Boot项目

问题: 最近需要使用Sprint Boot项目includeFlat另一个Spring Boot项目,但是gradle在build时却会报错,错误为"Plugin request for plugin already on the classpath must not include a version"。
解决过程: 经过测试,如果将被includeFlat的项目,gradle中取消使用Spring Boot插件,就不会报错误了。
解决方案: gradle中不使用Spring Boot的相关插件,如果需要spring web开发依赖,则直接引入implementation 'org.springframework.boot:spring-boot-starter-web:2.1.6.RELEASE'即可。

发布了28 篇原创文章 · 获赞 0 · 访问量 2697

猜你喜欢

转载自blog.csdn.net/weixin_43855938/article/details/95983230