java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTestimport org.junit.Test;import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.c
我有一个用@service注释的类(HttpHandler)。我正在为这个服务类编写单元测试用例。我在我的测试类中使用了@Autowired注释来获取服务的对象。但是,当我运行单元测试时,它返回NullPOinterException。有人能帮我吗?@Service * Build the request and Per