
java
a514548454
这个作者很懒,什么都没留下…
展开
-
struts2详细配置
struts2配置说明:2010-12-31 16:38:54| 分类: struts2 | 标签:struts2配置说明 字号:大中小 订阅 .通常struts2加载struts2常量的顺序如下: 1. struts-default.xml:该文件保存在struts2-core-2.0.6.jar文件中。2. struts-plugin.xml:该文件保存在strut转载 2014-03-29 14:56:16 · 505 阅读 · 0 评论 -
获取XML节点完整方法
/** * 根据Xpath表达式获取节点 * @param node * @param xpath * @return */ public static String getTextByNodeXpath(Node node,String xpath){ Node singNode = node.selectSingleNode(xpath); if原创 2014-09-02 17:02:41 · 942 阅读 · 0 评论 -
递归遍历文件夹
public static void FileList(String reportPath,ConcurrentLinkedQueue filelist ) { File [] files = new File(reportPath).listFiles(); if(files != null && files.length>0){ for (int i = 0; i原创 2014-08-27 11:42:38 · 525 阅读 · 0 评论 -
将文件夹下面的文件打包成zip
package cn.gov.csrc.base.util;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;转载 2014-08-26 18:32:49 · 586 阅读 · 0 评论 -
压缩文件夹下面的所有文件和文件夹
package com.huawei.cddevops;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import org.apache.tools.zip.ZipOutputStream;public class CompressBook { pu转载 2014-09-04 20:40:35 · 507 阅读 · 0 评论 -
spring配置文件
http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springfram原创 2014-05-27 14:48:36 · 388 阅读 · 0 评论 -
js+css做的树实例
jsp代码:isELIgnored="false"%>String path = request.getContextPath();String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";转载 2014-05-15 14:40:06 · 707 阅读 · 0 评论 -
读取properties配置文件方法
public static void getIP(){FileInputStream s = null;try { System.out.println(path);s = new FileInputStream(new File(path)); properties.load(s);IP = properties.getProperty("avenuebus.IP原创 2014-05-15 15:48:15 · 393 阅读 · 0 评论 -
http发送服务请求实例
HttpPost req = new HttpPost("/dm");req.addHeader("Content-Type", "application/json; charset=UTF-8");String jsonReq = MsgWrap.wrapRequestMsg("getdevices", "0",new JSONObject());req.setEntity(n原创 2014-05-15 15:40:52 · 913 阅读 · 0 评论 -
Struts2工作原理解说
1、客户端初始化一个指向Servlet容器(例如Tomcat)的请求; 2、这个请求经过一系列的过滤器(Filter)(这些过滤器中有一个叫做ActionContextCleanUp的可选过滤器,这个过滤器对于Struts2和其他框架的集成很有帮助,例如:SiteMesh Plugin); 3、接着FilterDispatcher被调用,FilterDispatcher询问Action原创 2014-04-01 15:25:33 · 518 阅读 · 0 评论 -
sping boot及mongoDB学习
MongoDB 教程:http://www.runoob.com/mongodb/mongodb-databases-documents-collections.htmlString boot官方学习文档:https://www.cnblogs.com/larryzeal/p/5799195.html#c1String boot快速入门实例:http://blog.youkuaiyun.com/q转载 2018-01-11 16:05:39 · 230 阅读 · 0 评论