【发布时间】:2015-08-01 08:13:03
【问题描述】:
我正在尝试用
构建一个项目apply plugin: 'spring-boot'
但它会在步骤 startScripts
处引发异常:common:compileJava UP-TO-DATE
:common:processResources UP-TO-DATE
:common:classes UP-TO-DATE
:common:jar UP-TO-DATE
:common:findMainClass
:common:startScripts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':common:startScripts'.
> No value has been specified for property 'mainClassName'.
但是我真的不需要这个模块的主类。我该如何解决?
【问题讨论】:
-
您的 spring-boot 应用程序有哪些依赖项?是否存在
spring-boot-starter依赖项? -
不,我实际上只有 testCompile("junit:junit") 在依赖项中。
标签: gradle spring-boot