标签:mapper one sse scan pack ring web srv 异常
@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等异常
标签:mapper one sse scan pack ring web srv 异常
原文地址:https://www.cnblogs.com/juniorMa/p/9589315.html