
java
qq_517351411
这个作者很懒,什么都没留下…
展开
-
微信支付 多次回调
public void wxPayCallbackResult(String message) throws IOException { HttpServletResponse response = getResponse(); response.setCharacterEncoding("UTF-8"); response.setContentType("applica...原创 2019-12-31 17:54:38 · 550 阅读 · 0 评论 -
window.location.href乱码问题
前台: window.location.href=webPath+"/connectionHomeDetail_homeExcel.action?scanDate="+decodeURI(scanDate); 后台 String scanDate = request.getParameter("scanDate"); try { scanDate=原创 2015-11-19 14:55:32 · 902 阅读 · 0 评论 -
Java去除数字里多余的0
public static String getPrettyNumber(String number) { return BigDecimal.valueOf(Double.parseDouble(number)) .stripTrailingZeros().toPlainString(); } public static void main(转载 2015-12-01 09:19:24 · 1557 阅读 · 0 评论 -
maven3 手动安装本地jar到仓库
安装命令: mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar 我自己安装oracle14.jar 时命令如下: mvn install:install-file -DgroupId=c转载 2015-12-09 13:04:49 · 377 阅读 · 0 评论 -
js 参数加密 修改jquery源码
1. 修改参数的值 s[ s.length ] = encodeURIComponent( key ) + "=" + p_enc( value ); 2.加入新的方法 jQuery.param2 = function(a) { if (a==undefined){ return a; } var data=a; var nd={}; try{ if (typ原创 2017-04-09 16:59:43 · 557 阅读 · 0 评论 -
spring ehcache配置
pom.xml net.sf.ehcache ehcache 2.8.3 ehcache.xml <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.x原创 2017-04-09 22:22:10 · 261 阅读 · 0 评论