随笔分类 - Java
摘要:错误描述: DEBUG [org.hibernate.SQL] - SELECT orp.ATTR6 FROM DISTRIBUT_VIEW d WHERE d.state = '1' AND d.oper_log LIKE '%下单%' GROUP BY orp.ATTR6 ERROR [org.
阅读全文
摘要:问题:根据id查询订单报错,查出来多个。order = orderService.findById(n.getOrderId()); 原因:hibernate映射关系一对多,回根据id查出来多条记录,然后抛出异常。 解决方案: 使用原生sql查询。select * from order where
阅读全文
摘要:问题:勾选导出记录,form提交,后台报错,请求头太大。 原因:默认提交方法,get请求大小受限。 解决方案:改成post提交。 <form action="exportAction.action" id="myForm" method="post"> <input type="hidden" id
阅读全文
摘要:错误: 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
阅读全文
摘要:jdk1.7无法下载https的图片,需要修改下代码。兼容TLSv1.2。 /** * * @param imageUrl * @return * @throws IOException * @throws NoSuchAlgorithmException * @throws KeyManageme
阅读全文
摘要: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
阅读全文
摘要:List<Map<String, Object>> list 转 List<Bean>报异常。 ... Method method = classType.getMethod("set"+f.getName().substring(0,1).toUpperCase()+f.getName().sub
阅读全文
摘要:错误描述:样式没加载出错,还没发起action请求,action有断点,后端无报错。 错误原因:找了好久,知道是url请求路径错误,搞了几次不对。重新对比url发现是路径拼接错误。注意单引号和双引号。 错误实例:var c='<img src='+pageContext+'/images/tt/tu
阅读全文
摘要:错误的URL。 原因: 图片服务器地址格式错误,fastdfs返回了错误的URL IMAGE_SERVER_URL = http:121.12.25.13/ 正确: IMAGE_SERVER_URL = http://121.12.25.13/
阅读全文
摘要:本文基于搭建的ssh框架 Dao层有许多重复的简单的增删改查,可以抽取出来,减少冗余代码。分享一下自己的实现案例。有许多深度好文,这里直接上代码。 只是抽取了出来,别的都不用改。 Dao层: package cn.itcast.dao; import java.io.Serializable; im
阅读全文
摘要:一路踩坑,在bug中成长,与君共勉! 三月 19, 2020 7:51:57 下午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to lis
阅读全文
摘要:严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework
阅读全文
摘要:SSH框架搭建 Spring + Struts + Hibernate Spring 与Struts2整合就是将Action对象交给Spring容器负责创建。 Spring 与Hibernate整合就是将sessionFactory交给Spring来负责维护。Spring负责维护session维护及
阅读全文
摘要:HTTP Status 500 - Unable to instantiate Action, userAction, defined for 'UserAction_login' in namespace '/'Error creating bean with name 'userAction'
阅读全文

浙公网安备 33010602011771号