@RunWith(SpringRunner.class)
@SpringBootTest(classes = CapAndFlinkServiceControllerTest.class)
@WebAppConfiguration
@ComponentScan(basePackages="com.suning.rdrs.srv")
//@MapperScan("com.suning.rdrs.srv.mapper")
public class CapAndFlinkServiceControllerTest {spring
這麼寫能解決啓動spring boot單元測試的時候,出現spring異常 no bean等異常app