摘要: 一、web应用环境 1.ServletContext 对于一个web应用,其部署在web容器(比如:tomcat)中,web容器提供其一个全局的上下文环境,这个上下文就是ServletContext,它由web容器负责初始化,其为后面的spring容器提供宿主环境。 ServletContext是一 阅读全文
posted @ 2017-01-28 21:06 刘轻语 阅读(8581) 评论(2) 推荐(1) 编辑

2016年11月16日

摘要: 1.快速排序 阅读全文
posted @ 2016-11-16 10:24 刘轻语 阅读(193) 评论(0) 推荐(0) 编辑

2016年10月7日

摘要: 在json字符串转java bean时,一般的对象,可以直接转,如:一个学生类,属性有姓名、年龄等 由字符串转java bean时可以使用以下方法: 是没有问题的,但是如果属性中含有复杂的类型,当其中属性有类似List , Map ,ArrayList、自定义的类型,如List<Teacher> t 阅读全文
posted @ 2016-10-07 21:34 刘轻语 阅读(1464) 评论(0) 推荐(0) 编辑
 
摘要: 只要给父元素添加overflow:hidden即可 阅读全文
posted @ 2016-10-07 19:47 刘轻语 阅读(647) 评论(0) 推荐(0) 编辑
 
摘要: left right 阅读全文
posted @ 2016-10-07 19:44 刘轻语 阅读(106) 评论(0) 推荐(0) 编辑

2016年9月26日

摘要: 如果要问如何CSS实现绝对定位元素的居中效果,很多人心里已经有答案了。 兼容性不错的主流用法是: .element { width: 600px; height: 400px; position: absolute; left: 50%; top: 50%; margin-top: -200px; 阅读全文
posted @ 2016-09-26 21:40 刘轻语 阅读(175) 评论(0) 推荐(0) 编辑

2016年8月16日

摘要: DOCTYPE Html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> 阅读全文
posted @ 2016-08-16 18:38 刘轻语 阅读(176) 评论(0) 推荐(0) 编辑
 
摘要: 关于 使用WebSocket报如下错误, Uncaught InvalidStateError: Failed to execute ‘send’ on ‘WebSocket’: already in CONNECTING state. 最开始感觉奇怪,后来发现 自己调用的顺序有问题 要先等到ono 阅读全文
posted @ 2016-08-16 10:35 刘轻语 阅读(232) 评论(0) 推荐(0) 编辑

2016年8月13日

摘要: 1.将多个select语句的查询结果合并 select * from (select top 3 * from users where account=’10@qq.com’ UNION select top 2 * from users)s 阅读全文
posted @ 2016-08-13 19:36 刘轻语 阅读(108) 评论(0) 推荐(0) 编辑

2016年7月26日

摘要: 注解配置 1.web.xml 只需将DwrServlet换为DwrSpringServlet(包名不同) 2.dwr类 3.applicationContext.xml 4.annotationConfing类 阅读全文
posted @ 2016-07-26 10:48 刘轻语 阅读(270) 评论(1) 推荐(0) 编辑