当前位置:网站首页>八阿哥纪事【三】
八阿哥纪事【三】
2022-04-22 06:30:00 【一只快乐的野指针D】
1、org.springframework.transaction.NoTransactionException: No transaction aspect-managed TransactionSta

1)问题场景:SSM项目中,service类的方法A和B都加上了@Transactional(rollbackFor={Exception.class})注解,然后在A中调用B方法,当异常事件发生时,控制台抛出此错误
2)原因:Spring 从同一个类中的某个方法调用另一个有注解(@Transactional)的方法时,事务会失效
3)解决:目前尚未解决。我尝试了把其中一个的@Transactional注解去掉,程序可以正常运行下去,但并没有把数据回滚
关于这个错误可参考 SpringBoot @Transactional声明事务无效问题
https://blog.csdn.net/xuhaogang3/article/details/82190026
2、Parameter ‘_frch_item_1’ not found。Available Parameters are [collection,list]
1)问题场景:Mybatis批量更新错误
2)原因:执行一条更新语句不发生错误,但是执行多条时出错
2)解决:在jdbc的url末尾加上&allowMultiQueries=true

此错误的解决参考自 mybatis批量更新出现he error occurred while setting parameters
3、Resource interpreted as Document but transferred with MIME type text/json
1)问题场景:在谷歌浏览器运行SSM项目,导出Excel文件时浏览器console报错
2)原因及解决方案:详情可见 https://blog.csdn.net/wuyujin1997/article/details/89481642
https://blog.csdn.net/u010161082/article/details/46618947
因为我文件导出成功了,页面也没有错误的反馈,只是按F12的时候看见这个错误,就没怎么理它
4、404 NotFound
1)这个错误太常见了,导致它的原因也五花八门的。我是因为jsp中的url没写对,跟控制台方法上的RequestMapping对应不上。
2)错误的写法:url="/ExportDormExcel.action"(这是@RequestMapping中的value)
3)正确的写法:url="${pageContext.request.contextPath}/ExportDormExcel.action"
4)此错误的其他原因及解决方法:解决404NotFound的问题——之地址的正确表示,404 Not Found小结,404 Not Found 的常见解决办法
5、easyUI的datagrid显示不出数据
1)问题描述:后台可读出数据,前端的datagrid显示不出数据,但分页控件上显示了有几行数据
2)解决:把filed属性全部改成小写,不论POJO和数据库的字段是否是大写的
3)关于此错误,参考 【工作记录0013】easyui中datagrid绑定,后台可读出数据,前台未显示的解决方法
版权声明
本文为[一只快乐的野指针D]所创,转载请带上原文链接,感谢
https://blog.csdn.net/sjhdxpz/article/details/95651620
边栏推荐
- XSS靶场过关
- shell函数内调用另一个函数(不带返回值和带返回值)
- 【建站笔记】:在wordpress博客文章中插入代码段并高亮显示
- Arduino中一种变通的发送固定格式中文短信的方法:以DHT22+GSM模块为例
- Shiping information participated in the enterprise roadshow of Hengyang "Chuanshan forum", talked about data security and helped collaborative innovation
- Leaders of Hangzhou commercial password Application Association and their delegation visited Shiping for information exchange
- 文件安全笔记
- 聚焦科技创新 | 世平信息亮相科创中国技术路演——信息技术与安全专场
- 【面试题】将一个无序整形数组的全部0移到末尾,并保持其它非0元素的相对顺序不变
- log4net在.Net Core使用
猜你喜欢

圣杯布局和双飞翼布局

读取WWH-OBD(ISO27145协议)数据流

Charles使用之修改请求和响应的三种方式

行业应用 |从实践中读懂银行的敏感数据安全防护思路

Shiping information was listed in the panorama of China's network security market in 2021
![RT thread [II] system initialization process](/img/46/6e2942e4c18c0220378050205e6528.png)
RT thread [II] system initialization process

昆仑通态 │ G系列屏如何与西门子300国产MPI适配器连接

《数据安全法》解读及安全保密技术应用交流会在京成功举办

Flink自定义sink端SinkFunction的应用

.net 5 Web自定义中间件实现返回默认图片
随机推荐
关于信息收集
使用sss 框架搭建简单毕设, 宿舍管理系统
Shiping information was listed in the panorama of China's network security market in 2021
echars动态实现散点图并自定义信息提示框
Learning notes of chicken with vegetables -- SQL injection -- sqli lab learning while practicing
OBD external test equipment initialization judgment protocol type (SAE J1939 / iso15765 / iso27145)
echars实现自定义山西省地图和地图下钻返回
文件安全笔记
图解《工业互联网专项工作组2022年工作计划》
Quartz.net在.Net Core中使用
utgard连接opcserver报错Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied. [0x800
Shiping information participated in the enterprise roadshow of Hengyang "Chuanshan forum", talked about data security and helped collaborative innovation
. net5 log4net failed to log to the database after starting for a period of time
实验5 组件及事件处理
Raspberry Pie: access BitLocker to go encrypted disk
【世平信息】刻录内容保密检查与合规管控解决方案
flask 数据Model迁移报错
Implement data compliance and ensure data security
技术解惑 | PLC是如何执行中断?又是如何去应用的?
OBD外接测试设备初始化判断协议类型(SAE J1939/ISO15765/ISO27145)