Я обновил build.gradle, settings.gradle и все зависимости, но @ContextConfiguration не может найти основной класс из другого модуля.
Код: Выделить всё
import com.data.server.MainServerApp
@ContextConfiguration(classes = MainServerApp.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties="spring.cloud.config.enabled=false")
class SuperTest extends Specification {
... ... ...
}
Код: Выделить всё
SuperTest.groovy: 3: unable to resolve class com.data.server.MainServerApp
@ line 3, column 1.
import com.data.server.MainServerApp
Подробнее здесь: https://stackoverflow.com/questions/792 ... her-module
Мобильная версия