原创 compareAndSwapObject

/** *比較並更新對象的某一個整數類型的域 *@param obj 被操作的對象 *@param fieldoffset 被操作的域在對象中的偏移量 *@param expect 域的期望值 *@param update 域的

原创 MultiPortEcho ibm dw nio入門異步io的例子

ibm dw nio入門異步io的例子   package com.ls.java.newio; import java.io.*; import java.net.*; import java.nio.*; import java.n

原创 免安裝Oracle客戶端使用PL/SQL連接Oracle

免安裝Oracle客戶端使用PL/SQL連接Oracle   免安裝Oracle客戶端使用PL/SQL連接Oracle       大家都知道,用PL/SQL連接Oracle,是需要安裝Oracle客戶端軟件的。有沒要想過不安裝Ora

原创 NIO Buffer Slice

    package com.ls.java.newio; import java.nio.ByteBuffer; public class TestSlice { public static void main(String

原创 xml配置格式加載

  package com.ls.spring.ioc.dummy; import org.springframework.stereotype.Component; @Component public class B { pub

原创 方法替換MethodReplacer

    package com.astute.sparrow.spring.ioc.method_injection; import org.springframework.beans.BeansException; import or

原创 ObjectFactoryCreatingFactoryBean

  /** * A FactoryBean implementation that * returns a value which is an ObjectFactory * that in turn returns a bean

原创 eclipse快捷鍵

1. Ctrl + /  所選擇的行用 "//"註釋 2. Ctrl + Shift + /  所選擇的行 用 "/* */" 來註釋 3. Alt + / 補全提示 , 參數提示, 方法提示 4 Ctrl + d 刪除整行 5 ctrl

原创 FutureTask&Sync innerRun

  /** * The thread running task. When nulled after set/cancel, this * indicates that the results are

原创 Spring方法注入method_injection

  package com.astute.sparrow.spring.ioc.method_injection; import org.springframework.beans.factory.annotation.Autowire

原创 使用編碼方式創建和綁定Bean

  package com.astute.sparrow.spring.ioc.test; public class B { public void output() { System.out.println("B.outpu

原创 Java NIO入門

  package com.ls.java.newio; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.File

原创 Spring ioc註解方式獲取bean

  package com.ls.spring.ioc.dummy; import org.springframework.stereotype.Component; @Component public class B { pub

原创 Spring xml注入

構造方法注入: <bean id="a" class="com.astute.sparrow.spring.ioc.test.A"> <constructor-arg type="int"> <value>12345</valu

原创 Properties配置格式加載

  package com.ls.spring.ioc.dummy; import org.springframework.beans.factory.annotation.Autowired; import org.springfra