摘要: java 写入文件 阅读全文
posted @ 2016-11-06 19:48 甜菜波波 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.发布到tomcat后获取应用的根目录 ServletContext s1=this.getServletContext(); String temp=s1.getRealPath("/");//C:\Program Files\Apache Software Foundation\Tomcat 阅读全文
posted @ 2016-11-06 19:21 甜菜波波 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 1.导入 2.在src下新建log4j.properties,内容如下 log4j.rootLogger=DEBUG, A1 ,R log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apac 阅读全文
posted @ 2016-11-06 19:05 甜菜波波 阅读(119) 评论(0) 推荐(0) 编辑
摘要: ${pageContext.request.contextPath} // 应用名为“demo1” 则得到的是"/demo1" <script>$(document).ready(function(){ $.get("${pageContext.request.contextPath}/jsonda 阅读全文
posted @ 2016-11-06 18:47 甜菜波波 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1.导入包 fastjson-1.2.2.jar 2.JSP文件加入 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3.用法 阅读全文
posted @ 2016-11-06 18:31 甜菜波波 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 一、简单数据的序列化 说明: 二、反序列化 三、日期格式化 说明: 阿里巴巴提供了很多SerializerFeature.XXX 这些都很符合中国人的习惯。比起Jackson各有优劣! 四、基本常用API 阅读全文
posted @ 2016-11-06 18:16 甜菜波波 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 类层次关系如下: Collection ├List │├LinkedList │├ArrayList │└Vector │ └Stack └Set Map ├Hashtable ├HashMap └WeakHashMap 下面来分别介绍 Collection接口 Collection是最基本的集合接 阅读全文
posted @ 2016-11-06 18:14 甜菜波波 阅读(386) 评论(0) 推荐(0) 编辑