设置注解
1. @RunWith(SpringRunner.class)
2. @SpringBootTest(classes = 启动类.class)
测试注入了Mapper 层, 但报错了
mybatis层参数直接写Map 不需要@Param 注解 加了会报错
Map<String, String> params =new HashMap<>();
void updateState(Map<String, String> params);
设置注解
1. @RunWith(SpringRunner.class)
2. @SpringBootTest(classes = 启动类.class)
测试注入了Mapper 层, 但报错了
mybatis层参数直接写Map 不需要@Param 注解 加了会报错
Map<String, String> params =new HashMap<>();
void updateState(Map<String, String> params);