1、改设置: 2、改了设置后报错Kotlin: warnings found and -Weeror specified,解决方案如下: Spring源码构建报错-解决方案: https://zhuanlan.zhihu.com/p/499222393