问题:根据id查询订单报错,查出来多个。order = orderService.findById(n.getOrderId()); 原因:hibernate映射关系一对多,回根据id查出来多条记录,然后抛出异常。 解决方案: 使用原生sql查询。select * from order where Read More
posted @ 2024-07-17 18:54 黎明的太阳 Views(6) Comments(0) Diggs(0) Edit
问题:勾选导出记录,form提交,后台报错,请求头太大。 原因:默认提交方法,get请求大小受限。 解决方案:改成post提交。 <form action="exportAction.action" id="myForm" method="post"> <input type="hidden" id Read More
posted @ 2024-07-04 13:55 黎明的太阳 Views(35) Comments(0) Diggs(0) Edit
错误现象:IE浏览器异常js报错,谷歌正常。 错误原因: 父页面结果列表中open弹窗修改信息,子页面提交后,刷新父页面的form表单,显示新值。在新页面没刷新之前,又点击编辑,open子页面,此时在ie模式下,无法提交表单。 解决方案: 1简单方法。 父页面: form下写一个遮罩层。子页面提交后 Read More
posted @ 2024-06-20 18:14 黎明的太阳 Views(5) Comments(0) Diggs(0) Edit
错误: 2024-06-19 13:23:09,873 INFO [com.t.extend.SpringContextLoaderListener] - generate index.html sucess 13:23:10.159 [RMI TCP Connection(3)-127.0.0.1 Read More
posted @ 2024-06-19 14:40 黎明的太阳 Views(4) Comments(0) Diggs(0) Edit
需求:要在一个弹窗中,点击加入按钮时,弹出另外一个弹窗。 实现方法:原来已经存在一个pop.css 弹窗,只能存在一个弹窗。只能加载另外一个框架layui的弹窗。 Read More
posted @ 2024-06-18 13:51 黎明的太阳 Views(18) Comments(0) Diggs(0) Edit
效果图: 流程:列名加两个箭头图片;点击下箭头,触发倒排序,点击上箭头触发正排序。 实现:列名上加两个图标,给图标加点击事件,form表单隐藏域加两个文本框存储排序和字段名,触发搜索事件,搜索结果按某个字段拍好序列。 优点:每次点击都是独立事件,不用存储上次结果,每次加载新数据,后端排序,兼容搜索。 Read More
posted @ 2024-06-18 13:48 黎明的太阳 Views(7) Comments(0) Diggs(0) Edit
jdk1.7无法下载https的图片,需要修改下代码。兼容TLSv1.2。 /** * * @param imageUrl * @return * @throws IOException * @throws NoSuchAlgorithmException * @throws KeyManageme Read More
posted @ 2024-04-10 13:10 黎明的太阳 Views(154) Comments(0) Diggs(0) Edit
2024-03-26 16:42:38.759 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource2024-03-26 16:42:43.114 [main] INFO com.alibaba.dru Read More
posted @ 2024-03-26 16:48 黎明的太阳 Views(61) Comments(0) Diggs(0) Edit
谷歌浏览器得行数控制不兼容ie,加个高度限制解决。(max-height:66px;) css: .txt{ display:block; height:auto; max-height:66px; overflow: hidden; text-overflow: ellipsis; word-wr Read More
posted @ 2023-05-30 17:39 黎明的太阳 Views(26) Comments(0) Diggs(0) Edit
08-Jun-2022 10:05:21.119 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application lis Read More
posted @ 2022-06-08 10:18 黎明的太阳 Views(2206) Comments(0) Diggs(0) Edit