测试中的contextLoads中的Gradle Error

时间:2018-05-04 14:31:17

标签: spring-boot gradle

我正在尝试使用Spring和Angular Js与Gradle一起构建一个Web。我的问题是当我运行我的项目或构建gradle这个错误出来。 “contextLoads FAILED”

“出了什么问题:”

&GT。有失败的测试:/build/reports/tests/test/index.html

引起: org.springframework.beans.factory.UnsatisfiedDependencyException

引起: org.springframework.beans.factory.NoSuchBeanDefinitionException

ContextLoad引导我进入这个类:

package com.linkedin.learning.linkedinlearningfullstackappangularspringboot;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class LinkedInLearningFullStackAppAngularSpringBootApplicationTests {

    @Test
    public void contextLoads() {

    }

}

继承屏幕截图以使其更清晰: enter image description here

0 个答案:

没有答案