`
chimpp55
  • 浏览: 21824 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

maven 实战 - 1

第1章 构建工具比较: 1.Make 过程式   不能实现跨平台构建,语法要求严格,构建失败往往是难以发现的空格。 2.Ant 过程式   没有依赖管理 3.maven 内置依赖管理,而且拥有中央仓库,但是文档杂乱 第二章 1、必须安装jdk 2、下载maven,解压到相应的文件夹下(例:d:\apache-maven) 3、配置环境变量(M2_HOME:d:\apache-maven; path(追加):%M2_HOME%\bin;) 4、检查是否安装成功,echo %M2_HOME% mvn -version 更新:     更换解压的文件夹,重新设置M2_HOME的值 文件夹目录结 ...
C:\shared\product\file\appartitioning 追加 applicationPartition.properties 文件
第一种方法 web.xml CharEncodingFilter param-value>Windows-31J</param-value> 这个改为UTF-8 第二种方法 追加 request.setCharacterEncoding("utf8");   import java.io.BufferedReader; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.H ...
类: Java代码 public class Phone { int price; String brand; private Phone(){ } private Phone(int price,String brand){ this.price = price; this.brand = brand; } @Override public String toString() { return price + "\t"+brand; } } 调用代码: Java代码 public class ...
在web开发中,要关注由于并发访问所导致的对某一同一个值的修改,否则信息会造成泄漏servlet是在多线程环境下的。即可能有多个请求发给一个servelt实例,每个请求是一个线程。 struts下的action也类似,同样在多线程环境下。 ...
/** * 按照异常批次号对已开单数据进行分组 * @param billingList * @return * @throws Exception */ private Map<String, List<TmExcpNewVo>> groupBillingDataByExcpBatchCode(List<TmExcpNewVo> billingList) throws Exception{ Map<String, List<TmExcpNewVo>> resultMap = new H ...
转]Java中HashMap遍历的两种方式 原文地址: http://www.javaweb.cc/language/java/032291.shtml 第一种:   Map map = new HashMap();   Iterator iter = map.entrySet().iterator();   while (iter.hasNext()) {   Map.Entry entry = (Map.Entry) iter.next();   Object key = entry.getKey();   Object val = entry.getValue(); ...
    用JDOM读取XML文件需先用org.jdom.input.SAXBuilder对象的build()方法创建Document对象,然后用Document类、Element类等的方法读取所需的内容。IBM : developerWorks 中国站上有一个很好的例子: <?xml version="1.0" encoding="UTF-8"?> <HD> <disk name="C"> <capacity>8G</capacity> ...
java中,对文件进行追加内容操作的三种方法! import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.RandomAccessFile; //如果文件存在,则追加内容;如果文件不存在,则创建文件,追加内容的三种方法 public class Ap ...
beans.xml 文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/bean ...
java.lang.ClassNotFoundException: org.jdom.input.SAXBuilder 核心包未加入完整 jaxen-core.jar jaxen-jdom.jar jdom.jar saxpath.jar 在lib 下面,通过buildbase追加所引用的包中
下载安装(推荐) 地址: http://sourceforge.net/projects/eclemma/ 安装方法: 解压到[eclipse_home]\dropins里 像C:\rspl\eclipse\dropins\eclemma-2.3.2 放入压缩包解压出来的内容(里面不能带有压缩包) 本人使用的adt的eclipse,打开eclipse-》help-》install new software-》add-》local-》选择你下载的eclemma,点OK就可以安装,然后提示重启, 这时就可以使用
   通过配置文件来初始化对象,并实现注入。 BeanFactory 文件 package com.bjsxt; public interface BeanFactory { public Object getBean(String string); } ClassPathXmlApplicationContext 文件 package com.bjsxt; import java.lang.reflect.Method; import java.util.HashMap; import java.util.List; import jav ...
http://jingyan.baidu.com/article/fc07f9893db14512ffe5199e.htmlhttp://www.xuexila.com/ps/wenzixiaoguo/1659671.html https://zhidao.baidu.com/question/1795699433444508267.html https://zhidao.baidu.com/question/581081581.html http://jingyan.baidu.com/article/17bd8e5225898985ab2bb884.html
JaxbReadXml文件 package com.jaxb; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.text.MessageFormat; i ...
Global site tag (gtag.js) - Google Analytics