Connected to the target VM, address: '127.0.0.1:57210', transport: 'socket'

    xiaoxiao2022-07-13  212

    这里说下我解决的方法(对于你来可能不适用)

    使用idea的go into生成测试方法时,自己一定要加上两个标签进行测试

    @RunWith(SpringRunner.class) @SpringBootTest

    同时如果不加这个方法会一直报空指针异常,加上这个方法即可测试了。 

     

    最新回复(0)