@RunWith(SpringRunner.class)
@SpringBootTest(classes = CapAndFlinkServiceControllerTest.class)
@WebAppConfiguration
@ComponentScan(basePackages="com.suning.rdrs.srv")
//@MapperScan("com.suning.rdrs.srv.mapper")
public class CapAndFlinkServiceControllerTest {
这么写能解决启动spring boot单元测试的时候,出现spring异常 no bean等异常