关于springboot点餐系统的项目,为什么项目可以运行成功,但是测试Mapper这边却会报错。

是不是因为websocket的jar包冲突的问题,可是运行可以通过的
我把webscoket的配置类注释掉,也是能够测试通过的
//就是测试这段代码,测试不通过
public interface ProductCategoryMapper {
@Insert("insert into product_category(category_name,category_type) values(#{category_name, jdbcType=VARCHAR},#{category_type, jdbcType=INTEGER})")
int insertByMap(Map<String, Object> map);
}
// 注释掉这段就可以了
@Component
public class WebSocketConfig {
// @Bean
// public ServerEndpointExporter serverEndpointExporter() {
// return new ServerEndpointExporter();
// }
}