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 删除文件夹的时候,必须先删除里面的文件,再删除文件夹。不能直接删除非空文件夹,记录一下。 [code="xml"] simple example build file [/code]
2013-11-28 15:17 · DEV · 评论(0) · Ant
Spring 2.5 Annotation
[b]Spring 2.5 Annotation[/b] [b]Reference:[/b] 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—企业…
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 字符串连接
[code="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("…
2012-07-23 20:32 · JavaScript · 评论(0) · JavaScript · String · contact
Get IP
[code="html"] [/code] Ref: http://www.ip.cn
2009-11-20 09:53 · Win32 · 评论(0) · HTML · PHP · Microsoft
创建 maven 插件
创建 maven 插件: 删除所有资源文件夹 mac 目录下面所有 grf 文件(target/classes/mac/**/*.grf)里面的内容: [code="xml"] [/code] 1) cd/d C:\Temp mvn archetype:create -DgroupId=org.xmlasia.plugins -DartifactId=edit-resource-maven-plugin -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-mojo 2) Ed…
2009-11-10 16:40 · Maven · 评论(0) · Java · Apache · maven · XML
Using platform encoding (Cp1252 actually), build is platform dependent
[b]Maven warning[/b] [color=red][WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource[/color] [b]Solution:[/b] Add the following configuration: [code="xml"] org.apache.maven.plugins maven-resources-plugin 2.4 UTF-…
2009-09-16 16:38 · Maven · 评论(0) · Apache · maven · XML
multi-module
[code="xml"] 4.0.0 com.zero app.builder 1.0 pom App Builder App Builder org.apache.maven.plugins maven-compiler-plugin 1.6 1.6 1.6 ../ABC_COMMON ../ABC_REF_DATA ../ABC_WSRS_INTERFACE/ABC_REF_SERVICE [/code]
2009-09-13 23:41 · Maven · 评论(0) · Apache · maven · XML
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) · C · C++ · Flex · C# · Adobe
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) · Eclipse
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) · Windows · Access · SVN · IDEA · subversion
MatchFinder
[code="java"]public class MatchFinder { //static List matchNames = new ArrayList(); static List nonMatchNames = new ArrayList(); public static void main(String[] args) throws Exception { List matchNames = new ArrayList(); //enumerate(new File("I:/_backup/_bad")); //enumerate(new File("D:/_bad")); /…
2009-09-01 16:21 · Java · 评论(0) · F#