当前位置: 动力学知识库 > 问答 > 编程问答 >

spring - java.lang.IllegalStateException: Failed to introspect bean class after creation new module in gradle

问题描述:

I have added new module to project and pasted new sources there.

I have builded application and then start.

I see the following error while starting:

java.lang.IllegalStateException: Failed to introspect bean class [MyClass] for persistence metadata: could not find class that it depends on

.....

Caused by:

java.lang.ClassNotFoundException: MyClass

MyClass resides in new module.

build.gradle:

apply plugin: 'java'

dependencies {

compile project(':my-old-module')

}

Any ideas?

分享给朋友:
您可能感兴趣的文章:
随机阅读: