从pom.xml文件通过gradle init --type pom转换为build.gradle后执行gradle idea报错
build file 'D:\studentSpace\jinxiaocun\build.gradle' line: 36
* What went wrong:
A problem occurred evaluating root project 'jinxiaocun'.
> Could not find method providedCompile() for arguments [{group=org.springframework.boot, name=spring-boot-starter-tomcat, version=1.5.9.RELEASE}] on root project ''.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
通过
https://blog.youkuaiyun.com/m0_38039437/article/details/104702838
页面指导下
加入
apply plugin: 'war'
OK
通过