ITeye博客

louisling

louisling · 共 73 篇文章

下载最新的 Spring

现在下载Spring真是不容易 1、在百度里面搜索 Spring,搜索到 http://www.springsource.org/ 2、点击自动跳转到 http://spring.io/ 3、点击顶部的 Projects 4、点击下面的 Spring Framework 5、点击那个 猫 图标 (GitHub) 6、到页面下面,点击 Downloading artifacts 下面的那个超链接 downloading Spring artifacts,到页面下面, 7、在 Manually downloading Spring distributions 下面, 点击里面的超链接 http:…

2014-02-08 11:38 · Spring · 评论(1)

Delete sub folder(FileUtils)

public class FileUtils { /** Delete all specified subFolder, e.g. delete all bin directory of c:/testApp. */ public static void deleteSubFolder(String sPath, String subFoldName, boolean isRecurse) { File file = new File(sPath); File[] files = file.listFiles(); for (File f : files) { if (f.isDirecto…

2013-11-28 18:03 · Java · 评论(0)

Ant 递归删除文件夹

发现用 Ant 1.7 删除文件夹的时候,必须先删除里面的文件,再删除文件夹。不能直接删除非空文件夹,记录一下。 <project name="MyProject" default="deleteDirs" basedir="."> <description>simple example build file</description> <property name="src" location="src"/> <target name="deleteDirs"> <delete> <fileset dir="." includes="**/bin/*.*"/> </delete> <del…

2013-11-28 15:17 · DEV · 评论(0)

Spring 2.5 Annotation

Spring 2.5 Annotation Reference: http://www.ibm.com/developerworks/cn/java/j-lo-spring25-ioc/ http://www.ibm.com/developerworks/cn/java/j-lo-spring25-mvc/ http://www.ibm.com/developerworks/cn/opensource/os-cn-spring-iocannt/ http://www.ibm.com/developerworks/cn/java/ 《精通 Spring 2.x—企业应用开发精解》陈雄华 (qu…

2013-11-27 11:33 · Spring · 评论(0)

JavaScript 类,对象

1. 构造函数方式 function Car(sColor,iDoors,iMpg) { this.color = sColor; this.doors = iDoors; this.mpg = iMpg; this.showColor = function() { alert(this.color); }; } Problem: 这种方式会导致每个对象都有自己的 showColor() . 2. 混合的构造函数/原型方式 function Car(sColor,iDoors,iMpg) { this.color = sColor; this.doors = iDoors; this.mpg…

2012-07-23 23:06 · JavaScript · 评论(0)

JavaScript 继承

//父类 function ClassA(sColor) { //Define Properties this.color = sColor; this.drivers = new Array("Mike","John"); this.showColor = function() { prt(this.color); }; } //父类 function ClassB(sName) { this.name = sName; this.sayName = function () { prt(this.name); }; } //子类,多重继承父类 ClassA, ClassB function…

2012-07-23 22:58 · JavaScript · 评论(0)

JavaScript 字符串连接

function StringBuffer () { this._strings_ = new Array(); } StringBuffer.prototype.append = function(str) { this._strings_.push(str); }; StringBuffer.prototype.toString = function() { return this._strings_.join(""); }; var str = new StringBuffer(); str.append("Audi"); str.append("BMW"); str.append("…

2012-07-23 20:32 · JavaScript · 评论(0)

Get IP

<body> <script type="text/javascript"> <!-- function GetUrlText(url) { var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); try { xmlhttp.open("get", url, false); xmlhttp.send(); return xmlhttp.responseText; } catch (e) { return ""; } finally { xmlhttp = null; } } var ip = GetUrlText("http://www.i…

2009-11-20 09:53 · Win32 · 评论(0)

创建 maven 插件

创建 maven 插件: 删除所有资源文件夹 mac 目录下面所有 grf 文件(target/classes/mac/**/*.grf)里面的内容: <Property fileURL="src/main/resources/workspace.prm" id="GraphParameter0"/> <Property fileURL="src/main/resources/workspace.prm" id="GraphParameter1"/> <Property fileURL="src/main/resources/workspace.prm" id="GraphParameter…

2009-11-10 16:40 · Maven · 评论(0)

Using platform encoding (Cp1252 actually), build is platform dependent

Maven warning Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! Copying 1 resource Solution: Add the following configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4</vers…

2009-09-16 16:38 · Maven · 评论(0)

multi-module

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.zero</groupId> <artifactId>app.builder</artifactI…

2009-09-13 23:41 · Maven · 评论(0)

Component Explorer

Flex Builder 3 - Component Explorer C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\samples\explorer build.bat explorer.html

2009-09-04 08:59 · Flex · 评论(0)

Eclipse dropins

You can also use an own extra dropins folder: simply add a parameter into eclipse.ini: -Dorg.eclipse.equinox.p2.reconciler.dropins.directory= /your_path/e34shared_dropin

2009-09-03 14:32 · Java · 评论(0)

SVN: RA layer request failed

Q: org.tigris.subversion.javahl.ClientException: RA layer request failed svn: OPTIONS of 'http://zh.abc.org/svn/CAI/CMI/trunk/CMDA_DATA_ACCESS': 200 OK (http://zh.abc.org) A: C:\WINDOWS\system32\drivers\etc\hosts 192.168.1.127 zh.abc.org

2009-09-01 16:46 · Other · 评论(4)

MatchFinder

public class MatchFinder { //static List<FileInfo> matchNames = new ArrayList<FileInfo>(); static List<String> nonMatchNames = new ArrayList<String>(); public static void main(String[] args) throws Exception { List<MatchInfo> matchNames = new ArrayList<MatchInfo>(); //enumerate(new File("I:/_backup…

2009-09-01 16:21 · Java · 评论(0)