Fail to replace DataSource with an embedded database for tests. If you want an enbedded database please put a supported on on the class path or tune the replace attribute of @AutoConfigreTestDataBase
多数据源,但是不能取到数据信息
在注解中添加@ImportAutoConfiguration(value = {RmasDataSourceConfig.class}, exclude = DataSourceAutoConfiguration.class)
@MybatisPlusTest
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
@ImportAutoConfiguration(value = {RmasDataSourceConfig.class}, exclude = DataSourceAutoConfiguration.class)
public class RmasTest {
@Autowired
private RmasMapper rmasMapper;
@Test
void updatePaymentTest(){
rmasMapper.selectById("1");
}
}