报错,ERROR 8324 --- [io-12000-exec-8] c.y.cols.controller.CardTypeController
问题:
2021-04-29 14:45:50.871 ERROR 8324 --- [io-12000-exec-8] c.y.cols.controller.CardTypeController : 修改失败:Method Not Implemented!
原因:
CardType cardType1 = cardTypeService.findById(cardType.getId());
findById方法是IBaseService的方法,没有被CardService实现。
解决:
@PutMapping("/updateCardType")
@ApiPermission
public ModelMap updateCardType(@RequestBody CardType cardType) {
ModelMap modelMap = new ModelMap();
try {
CardType cardType1 = cardTypeService.getById(cardType.getId());
if (cardType1 != null) {
CardType update = cardTypeService.update(cardType);
modelMap.addAttribute(FishConstant.SUCCESS,true);
}else{
modelMap.addAttribute(FishConstant.SUCCESS,false);
modelMap.addAttribute(FishConstant.ERROR_MSG,"修改失败,卡种类不存在");
}
}catch (JpaObjectRetrievalFailureException e){
logger.error("修改失败:"+e.getMessage());
modelMap.addAttribute(FishConstant.SUCCESS,false);
modelMap.addAttribute(FishConstant.ERROR_MSG,"修改失败,卡种类不存在,请刷新界面");
}catch (Exception e){
logger.error("修改失败:"+e.getMessage());
modelMap.addAttribute(FishConstant.SUCCESS,false);
modelMap.addAttribute(FishConstant.ERROR_MSG,"修改失败");
}
return modelMap;
}
报错,ERROR 8324 --- [io-12000-exec-8] c.y.cols.controller.CardTypeController相关推荐
- docker报错Error response from daemon: Get https://registry-1.docker.io/v2/: x509
docker报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has exp ...
- 解决 docker exec 报错 Error response from daemon: Container XXXXX is not running
docker exec 报错 Error response from daemon: Container XXXXX is not running 解决思路 XXXXX 为报错容器id 问题描述 废话 ...
- Qt5:报错error: ‘tr‘ was not declared in this scop
Qt5:报错error: 'tr' was not declared in this scop Qt5出现tr错误 QObject简单解释 QObject描述 Qt5出现tr错误 CMyDir.cpp ...
- OpenCV drawMatches出现报错Error: Assertion failed
OpenCV drawMatches出现报错Error: Assertion failed (i2 >= 0 && i2 < static_cast<int>( ...
- python下载第三方库的时候报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the
python下载第三方库的时候报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the l ...
- pip报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory
使用pip安装某些包时,会出现以下报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or d ...
- Flex报错Error #2048: 安全沙箱冲突
Flex+JPA架构,JPA程序迁移,从A服务器到B.其他一切没变,唯一变的就是IP. 前端Flex也就是swf报错Error #2048: 安全沙箱冲突:http://xxx.swf 不能从 xxx ...
- git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)....
Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保 ...
- SAP MM MB21创建预留单据报错- Error during conversion to alternative units of measure -
SAP MM MB21创建预留单据报错- Error during conversion to alternative units of measure - 某日下午收到业务部门报错,说是创建预留单保 ...
最新文章
- 2021 Facebook 博士奖研金名单出炉:13位华人学者获选
- Android Studio找不到org.apache.http中的类
- 拥抱对手 微软崛起或靠“云计算”业务
- 笔记本电脑销量排名_网友总结京东笔记本销量,联想高居第一,华为表现很出色...
- C++设计模式-开放-封闭原则基本概念与实例
- 将Office2010版EXCEL文件保存为2007版.XLS文件格式体积巨增解决方法
- PS5运行Linux,索尼发布最新驱动!PS5手柄现在已支持Linux系统
- Problem E: 深入浅出学算法019-求n的阶乘
- HDU 3732 Ahui Writes Word
- Windows驱动开发之DDK与WDK、WDM的区别
- Android 动画系列之 -- 补间动画
- UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 2: illegal mu
- Linux:《gzip》《bzip2》压缩解压
- windows环境下利用python进行CGI配置
- 音乐制作软件中文精简版-Nuendo 4 v4.3 WiN
- 第十篇:读《这才是心理学-看穿伪科学的批判性思维》
- 利用HTML和javaScript实现简单的加减乘除运算
- 狂赚 1200 亿,差点收购苹果,影响千万程序员,那个叫做太阳的公司却陨落了!...
- springBoot学习2--整合篇--基于狂神说
- 豌豆荚使用到的开源技术