参考:https://blog.csdn.net/qiaojj/article/details/92015554
一、idea中gradle问题,引入项目出现:
Support for clients using a tooling API version older than 3.0 was deprecated and will be removed in Gradle 5.0. You are currently using tooling API version 2.13. You should upgrade your tooling API client to version 3.0 or later.
解决办法:gradle的版本太高,改成4.10.2版本
二、出现:导入项目后出现如下:
Gradle Idea Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
在idea下的.idea->modules中找到xx.main.iml文件把:
scope="PROVIDED" 都修改为 COMPILE或者去掉也行
而对于scope=provided的情况,则可以认为这个provided是目标容器已经provide这个artifact。换句话说,它只影响到编译,测试阶段。在编译测试阶段,我们需要这个artifact对应的jar包在classpath中,而在运行阶段,假定目标的容器(比如我们这里的liferay容器)已经提供了这个jar包,所以无需我们这个artifact对应的jar包了。
2728

被折叠的 条评论
为什么被折叠?



