摘要: 配置使用dubbo时,xml报错“cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element” 解决方案: 在线下载dubbo.xsd文件,放于某个文件夹。 阅读全文
posted @ 2017-07-20 20:42 皈依之路 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 一 .考虑用静态工厂方法代替构造器 1. 静态工厂方法与设计模式中的工厂方法模式不同,注意不要混淆 例子: 2. 采用静态工厂方法比构造器方法的优势 ①有名称 ② 不必在每次调用他们的时候都创建一个新的对象 ③可以返回原类型的任何子类型的对象 ④在创建参数化实例的时候,使代码更加简洁 比如 当参数越 阅读全文
posted @ 2017-05-05 21:09 皈依之路 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 使用SpringMVC参数传递时, 遇到get请求中文信息时,页面应答会显示中文乱码. 解决办法: 一, 我们需要把request.getParameter(“参数名”)获取到的字符串先用ISO-8859-1编码成字节流,然后再将其用utf-8解码成字符流,代码如下: 二, 我们也可以通 阅读全文
posted @ 2016-07-01 15:28 皈依之路 阅读(8403) 评论(0) 推荐(0) 编辑
摘要: 故障问题: 使用springMVC3.05 ,tomcat服务器进行开发, Spring配置正确,console有输出,但是url打开时不能出现页面,提示错误信息为:NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config 解决办法: 随便找个 阅读全文
posted @ 2016-06-30 18:45 皈依之路 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 解决方法:1、页面上放个隐藏的<input type=“file” />2、然后加上一个文本input(type="text")和一个按钮input(type="button")3、点按钮的时候调用<input type=file />的click选择文件4、在<input type=file /> 阅读全文
posted @ 2016-03-01 09:50 皈依之路 阅读(2558) 评论(0) 推荐(0) 编辑
摘要: JS代码 //图像加载出错时的处理 function errorImg(img) { img.src = "默认图片.jpg"; img.onerror = null; } HTML代码 <img width="32" height="32" src="1.jpg" onerror="errorIm 阅读全文
posted @ 2016-02-29 23:14 皈依之路 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-02-19 11:15 皈依之路 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1、pip下载安装1.1 pip下载# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate1... 阅读全文
posted @ 2016-01-21 22:34 皈依之路 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 导入 random模块 >>> import random 1. random.random random.random()用于生成一个0到1的随机浮点数: 0 >> random.random() # Random float x, 2 random.un... 阅读全文
posted @ 2016-01-21 22:17 皈依之路 阅读(446) 评论(0) 推荐(0) 编辑