摘要: @WebServlet("/UploadServlet.do") public class UploadServlet extends HttpServlet { private static final long serialVersionUID = 1L; protected void service(HttpServletRequest request, ... 阅读全文
posted @ 2018-04-12 10:18 vlsion 阅读(1405) 评论(0) 推荐(0) 编辑
摘要: web.xml在项目WEB-INF下面。 web.xml启动加载顺序为:ServletContext-> listener ->filter -> servlet 其中 配置节context-param用于向ServletContext提供键值对,即应用程序上下文信息。 因为加载listener与f 阅读全文
posted @ 2018-04-04 15:02 vlsion 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 一个接口 public interface AServlce{ public ADao getAId(Long id); } 俩个实现 @Service("service") public class AImpl implements AServlce{ public ADao getAId(Lon 阅读全文
posted @ 2018-03-29 10:44 vlsion 阅读(2652) 评论(0) 推荐(0) 编辑
摘要: 一,集合与数组区别 数组是一种容器(存基本数据类型:整型->byte,short,int,long;浮点型->float,double;布尔型->boolean;字符型->char;存对象),长度固定; 集合(存对象,对象类型可以不同),长度可变; 二,层次关系 Collection(interfa 阅读全文
posted @ 2018-01-24 10:50 vlsion 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/liaojie970/p/5577018.html Mapper.xml: 要做foreach的对象,作为入参时,List<?>对象默认用list代替作为键,数组对象有array代替作为键,Map对象没有默认的键。当然在作为入参时可以使用@Par 阅读全文
posted @ 2018-01-23 09:35 vlsion 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Runner.prototype var defRunner=Runner.prototype.gameOver Runner.prototype.gameOver=function(){console.log("Fuck u Chrome")} Runner.instance_.setSpeed( 阅读全文
posted @ 2017-11-08 15:43 vlsion 阅读(315) 评论(0) 推荐(0) 编辑
摘要: /** * Created by vlsion on 2017-10-31 */var setting = { view: { addHoverDom: addHoverDom, removeHoverDom: removeHoverDom, selectedMulti: false }, edit 阅读全文
posted @ 2017-10-31 17:43 vlsion 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 转 http://blog.sina.com.cn/s/blog_3e3779c10100emst.html 当数据超过3位的时候,freemarker会自动用逗号截取 格式如:2,008 如何解决呢? 1> 加.toString(),如:${(userId).toString()}2> 加?c,如 阅读全文
posted @ 2017-10-09 15:01 vlsion 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: CaptchaUnit.javapackage com.jason.www.common;import java.awt.*;import java.awt.image.BufferedImage;import java.util.Random;/** * @Project : medbook_hz 阅读全文
posted @ 2017-09-30 17:31 vlsion 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.cnblogs.com/st-leslie/p/5617130.html localStorage使用总结 一、什么是localStorage、sessionStorage 在HTML5中,新加入了一个localStorage特性,这个特性主要是用来作为本地存储来使用的, 阅读全文
posted @ 2017-09-30 15:34 vlsion 阅读(161) 评论(0) 推荐(0) 编辑