黑靈客棧
黑靈的沒啥技術含量的技術博客! -> http://zjumty.iteye.com
BlogJava
|
首頁
|
發新隨筆
|
發新文章
|
聯系
|
聚合
|
管理
隨筆:204 文章:2 評論:243 引用:0
2007年6月9日
在傳輸層上壓縮WebService的請求和響應
posted @
2013-06-23 21:45
黑靈 閱讀(6115) |
評論 (1)
|
編輯
收藏
在MongoDB里實現循環序列功能
posted @
2013-04-26 22:57
黑靈 閱讀(4606) |
評論 (1)
|
編輯
收藏
輸出debug信息到postfix的log
posted @
2013-04-26 19:25
黑靈 閱讀(3434) |
評論 (0)
|
編輯
收藏
Java里的CompareAndSet(CAS)
摘要: Atomic從JDK5開始, java.util.concurrent包里提供了很多面向并發編程的類. 使用這些類在多核CPU的機器上會有比較好的性能.
主要原因是這些類里面大多使用(失敗-重試方式的)樂觀鎖而不是synchronized方式的悲觀鎖.
今天有時間跟蹤了一下AtomicInteger的incrementAndGet的實現.
本人對并發編程也不是特別了解, 在這里就是做個筆記, 方便以后再深入研究.
閱讀全文
posted @
2013-04-24 17:20
黑靈 閱讀(30450) |
評論 (0)
|
編輯
收藏
Apache Mina 中文文檔翻譯 - 特性
posted @
2013-04-23 22:02
黑靈 閱讀(1230) |
評論 (0)
|
編輯
收藏
Apache Mina 中文文檔翻譯 - 概述
摘要: 概述
Apache MINA 是一個網絡應用框架, 它可以幫助你簡單容易的開發高性能,高可擴展性的網絡應用程序。Apache MINA底層利用Java NIO實現,在TCP/IP和UPD/IP等傳輸層上提供一個抽象的基于事件驅動的異步API。
閱讀全文
posted @
2013-04-22 23:13
黑靈 閱讀(2987) |
評論 (0)
|
編輯
收藏
Properties.storeToXML方法拋出空指針哦!
摘要: 今天項目里遇到的, 在這里做個記錄!
閱讀全文
posted @
2013-04-19 16:42
黑靈 閱讀(2483) |
評論 (0)
|
編輯
收藏
關于spring-mvc的InitBinder注解的參數
摘要: 通過Spring-mvc的@InitBinder注釋的方法可以對WebDataBinder做一些初始化操作。
比如設置Validator。
我一直在想能不能為每個Request或者每個Action方法單獨設置Validator。
也就是說Controller里有多個被@InitBinder標注的方法。 在不同的Action時被分別調用。
閱讀全文
posted @
2013-04-17 00:42
黑靈 閱讀(26709) |
評論 (2)
|
編輯
收藏
KMP算法里的next函數是怎么得到的?
posted @
2013-04-14 23:24
黑靈 閱讀(1429) |
評論 (0)
|
編輯
收藏
簡單的監視某個端口的連接數的Linux命令
posted @
2012-10-30 09:38
黑靈 閱讀(3098) |
評論 (0)
|
編輯
收藏
HTTP Methods Every Web Developer Must Know
posted @
2012-08-21 09:27
黑靈 閱讀(1722) |
評論 (0)
|
編輯
收藏
當客戶端和服務器都在自己的機器上時,用wireshark攔截packet
摘要: 當客戶端和服務器都在自己的機器上時,用wireshark是看不到發送和接受到的數據包的.
閱讀全文
posted @
2012-04-12 09:22
黑靈 閱讀(2306) |
評論 (1)
|
編輯
收藏
spring data mongodb的Converter問題
摘要: 調用mongoTemplate的save方法時, spring-data-mongodb的TypeConverter會自動給document添加一個_class屬性, 值是你保存的類名. 這種設計并沒有什么壞處. spring-data-mongodb是為了在把document轉換成Java對象時能夠轉換到具體的子類. 但有時候我們并不希望出現這個字段, 主要是看上去會比較"煩". 可以通過設置MappingMongoConverter的MongoTypeMapper來解決這個問題.
閱讀全文
posted @
2012-02-21 09:34
黑靈 閱讀(8711) |
評論 (0)
|
編輯
收藏
Grails 控制臺輸出亂碼的解決方法
posted @
2011-08-25 17:06
黑靈 閱讀(1043) |
評論 (1)
|
編輯
收藏
jdbcdslog oracle data source
posted @
2011-06-30 09:55
黑靈 閱讀(2147) |
評論 (1)
|
編輯
收藏
Resizing a root LVM volume
posted @
2010-10-07 16:49
黑靈 閱讀(708) |
評論 (0)
|
編輯
收藏
The Zen of Python
posted @
2010-08-30 17:05
黑靈 閱讀(440) |
評論 (0)
|
編輯
收藏
把RHEL的DVD鏡像最為YUM安裝源
posted @
2010-08-24 15:41
黑靈 閱讀(1629) |
評論 (0)
|
編輯
收藏
Windows XP上給IIS注冊WCF服務
posted @
2010-08-11 09:59
黑靈 閱讀(2068) |
評論 (0)
|
編輯
收藏
我的ubuntu 常用軟件
posted @
2010-08-08 16:45
黑靈 閱讀(363) |
評論 (0)
|
編輯
收藏
Visual Studio 2010 配置相關
摘要: Visual Studio 2010 配置相關
閱讀全文
posted @
2010-08-05 09:13
黑靈 閱讀(325) |
評論 (0)
|
編輯
收藏
wofstreamでUnicode文字列をファイルに出力する。
posted @
2010-08-04 12:14
黑靈 閱讀(528) |
評論 (0)
|
編輯
收藏
頁面上顯示PDF, 但是不顯示工具欄(IE).
posted @
2010-07-14 15:32
黑靈 閱讀(7864) |
評論 (0)
|
編輯
收藏
oracle使用筆記
posted @
2009-12-08 09:03
黑靈 閱讀(358) |
評論 (0)
|
編輯
收藏
Oracle建完索引后要analyze一下才行!
posted @
2009-11-25 17:33
黑靈 閱讀(502) |
評論 (0)
|
編輯
收藏
Visual Studio開發QT程序--環境配置
posted @
2009-11-12 22:53
黑靈 閱讀(3286) |
評論 (1)
|
編輯
收藏
Tomcat里的cpappend.bat
摘要: 在Tomcat的發行包中有一個bat文件很有意思.
可以把指定的參數添加到classpath里面.
和bat腳本for一起配合,可以實現自動的把某個目錄下的jar包都放到classpath里.
閱讀全文
posted @
2009-11-05 09:43
黑靈 閱讀(1828) |
評論 (2)
|
編輯
收藏
顯示文件列表的groovy腳本
摘要: 顯示文件列表的groovy腳本
閱讀全文
posted @
2009-09-27 19:57
黑靈 閱讀(1158) |
評論 (0)
|
編輯
收藏
[ZZ]Linux更改文件時間
posted @
2009-09-25 11:27
黑靈 閱讀(357) |
評論 (0)
|
編輯
收藏
ASCII Characters Table
摘要: American Standard Code for Information Interchange (ASCII), pronounced /??ski/ is a character-encoding scheme based on the ordering of the English alphabet. ASCII codes represent text in computers, communications equipment, and other devices that work with text. ASCII includes definitions for 128 characters: 33 are non-printing control characters (number 0 to 31 and 127), now mostly obsolete that affect how text is processed; 94 are printable characters (numbers 32 to 126), and the space is cons
閱讀全文
posted @
2009-09-18 10:52
黑靈 閱讀(349) |
評論 (0)
|
編輯
收藏
[ZZ]Groovy Goodness: Using the GroupBy Method
摘要: In Groovy we can group the elements of a Collection type in a map. We define the rule for grouping with a closure. The result is a map where the key is the grouping condition and the value contains the elements of the Collection type belonging to the key. Let's see the groupBy method in action:
閱讀全文
posted @
2009-09-14 09:58
黑靈 閱讀(286) |
評論 (0)
|
編輯
收藏
[ZZ]Groovy Goodness: Using Lists and Maps As Constructors
摘要:
Constructors in Groovy can be invoked in a classic Java way, but we can also use lists or maps to create objects. Groovy supports an explicit coersion of a list to a constructor with the as keyword. Or we can rely on the implicit coersion when Groovy looks at the type of the variable to automatically convert the list to the right constructor call.
閱讀全文
posted @
2009-09-08 17:09
黑靈 閱讀(355) |
評論 (0)
|
編輯
收藏
[ZZ]Groovy Goodness: Using the Inject Method
摘要: Groovy has some features and methods we can categorize as functional programming. The inject() method is a so called higher-order function. Other languages call it a fold, reduce or accumulate. The inject() method processes a data structure with a closure and builds up a return value. The first parameter of the inject() method is the first value of the intermediary results of the second parameter: the closure. When we use the inject() we don't introduce any side effects, because we build up the
閱讀全文
posted @
2009-09-08 17:04
黑靈 閱讀(326) |
評論 (0)
|
編輯
收藏
[ZZ]Groovy Goodness: Date and Time Durations and the TimeCategory
摘要: Groovy has some elegant ways to work with date and time values. One of them is the support of durations. We can define a duration to denote a certain time amount, like 7 days, 2 hours and 50 minutes. We can use these durations to add or subtract them from date and time objects.
The TimeCategory provides an even Groovier way to work with durations. We can use constructs like 7.days + 12.minutes to create a duration. When we read this code it is just like reading English text. Here is som
閱讀全文
posted @
2009-09-07 10:54
黑靈 閱讀(452) |
評論 (0)
|
編輯
收藏
[ZZ]Groovy Goodness: Multiple Assignments
摘要: Since Groovy 1.6 we can define and assign values to several variables at once. This is especially useful when a method returns multiple values and we want to assign them to separate variables.
閱讀全文
posted @
2009-09-07 10:52
黑靈 閱讀(333) |
評論 (0)
|
編輯
收藏
[ZZ]Groovy Goodness: the With Method
摘要: Groovy has a with method we can use to group method calls and property access to an object. The with method accepts a closure and every method call or property access in the closure applies to the object if applicable. The method is part of Groovy's extensions to the java.lang.Object class. Let's see this with an example:
閱讀全文
posted @
2009-09-07 10:51
黑靈 閱讀(294) |
評論 (0)
|
編輯
收藏
制作圖片縮略圖的Groovy腳本
摘要: 制作圖片縮略圖的Groovy腳本
閱讀全文
posted @
2009-08-25 13:49
黑靈 閱讀(1246) |
評論 (0)
|
編輯
收藏
改文件名的Groovy代碼
摘要: 改文件名的Groovy代碼
閱讀全文
posted @
2009-08-21 10:54
黑靈 閱讀(603) |
評論 (0)
|
編輯
收藏
下劃線分割字符串轉換成駝峰式字符串
摘要: 下劃線分割字符串轉換成駝峰式字符串的groovy腳本
閱讀全文
posted @
2009-06-22 19:19
黑靈 閱讀(2576) |
評論 (1)
|
編輯
收藏
Grails develop tip 1
posted @
2009-05-31 10:44
黑靈 閱讀(1245) |
評論 (0)
|
編輯
收藏
判斷一個類是另一個類的子類
posted @
2008-12-24 15:02
黑靈 閱讀(1273) |
評論 (3)
|
編輯
收藏
iBatis+Oracle+hashmap的TIMESTAMP轉型問題
摘要: 這是個什么問題呢?
首先你要在這樣的環境下:
iBatis-2.3.4.726
oracle jdbc driver 10.2.0.3.0
你的數據庫中字段定義為TIMESTAMP
你的sqlMap中的resultClass為hashmap
這是如果你這樣調用
Map result = xxxDao.queryForObject(......);
Date someTime = (Date)result.get("someTime");
你會的到如下ClassCaseException: oracle.sql.TIMESTAMP
閱讀全文
posted @
2008-11-05 14:28
黑靈 閱讀(5104) |
評論 (3)
|
編輯
收藏
日語輸入法中特殊文字、符號的輸入
posted @
2008-10-10 13:14
黑靈 閱讀(254) |
評論 (0)
|
編輯
收藏
Don't trust any library that doesn't have a test suite
posted @
2008-10-04 00:49
黑靈 閱讀(248) |
評論 (0)
|
編輯
收藏
ubuntu 配置系統服務的工具
posted @
2008-08-04 17:11
黑靈|
編輯
收藏
Scrum的世界: 我是一名開發人員
摘要: 今天在Dzone上看到一篇blog: Scrum World: I am a developer
以一個開發人員的視角寫了scrum中的一次sprint中的一天做的事情. 挺有意思的, 翻譯了一下給大家看看, 上面的原文鏈接有可能進不去, 我是通過國外代理進去的wordpress.com好像一直被擋在了長城外面啊.
閱讀全文
posted @
2008-07-23 14:25
黑靈 閱讀(1594) |
評論 (2)
|
編輯
收藏
[ZZ]Linux定時任務系統Cron入門
posted @
2008-07-21 12:42
黑靈 閱讀(553) |
評論 (0)
|
編輯
收藏
django useful tip
摘要: 最近在用django做一下項目, 我也是第一次使用django, 也是第一次比較正式的使用Python. 本文將記錄一下使用django過程中遇到的一下問題和解決辦法. 不斷更新!
閱讀全文
posted @
2008-07-11 12:07
黑靈 閱讀(2746) |
評論 (2)
|
編輯
收藏
調整更改ubuntu時區,時間,locale
posted @
2008-07-01 14:02
黑靈 閱讀(22786) |
評論 (6)
|
編輯
收藏
如何在window系統中讓py文件可以直接執行
摘要: 正常情況下你如果是用安裝文件安裝的Python, 那么安裝時會給你設置好這樣的功能. 但是有時候你可能不小心改了配置, 或者不是用安裝包安裝的. 這是如果你在控制臺直接輸入:
xxx.py arg1 arg2 這樣的命令, 就不會顯示"xxx.py"不是內部或外部命令,也不是可運行的程序或批處理文件。
比如你要用 django-admin.py startproject mysite 來建立項目.
閱讀全文
posted @
2008-06-20 17:25
黑靈 閱讀(28136) |
評論 (1)
|
編輯
收藏
update-rc.d詳解 Debian/Ubuntu系統啟動腳本
posted @
2008-06-20 16:04
黑靈 閱讀(7880) |
評論 (0)
|
編輯
收藏
用Komodo調試Google App Engine應用程序
posted @
2008-06-12 16:30
黑靈 閱讀(3019) |
評論 (7)
|
編輯
收藏
關于Chart的開源庫
摘要: 收集的一些用于繪制圖表的庫.
閱讀全文
posted @
2008-06-10 14:26
黑靈 閱讀(3921) |
評論 (5)
|
編輯
收藏
Tomcat配置
posted @
2008-05-09 10:42
黑靈 閱讀(3644) |
評論 (0)
|
編輯
收藏
apche 虛擬目錄 (外部部署)(曾經犯的錯誤)
posted @
2008-05-09 10:34
黑靈 閱讀(926) |
評論 (0)
|
編輯
收藏
正則表達式
posted @
2008-03-14 20:39
黑靈 閱讀(728) |
評論 (2)
|
編輯
收藏
gbk_to_utf8
摘要: 前些時候需要把項目中的文本文件都從GBK編碼轉換為UTF-8編碼. 如果要手動的一個個的改, 那可費事了. 反正想學學Groovy, 就用Groovy做的轉換腳本吧.
閱讀全文
posted @
2008-03-11 09:44
黑靈 閱讀(2777) |
評論 (2)
|
編輯
收藏
[待翻譯]Categories of Java HotSpot VM Options
摘要: 還沒翻譯, 有時間翻譯.
閱讀全文
posted @
2007-12-26 14:23
黑靈 閱讀(918) |
評論 (0)
|
編輯
收藏
用JakartaCommon的net組件來做ftp下載
摘要: 這幾天一個同事要在項目里實現用ftp下載文件. 遇到了很多問題. 于是我推薦他用Jakarta-Commons項目中的net組件在實現. 其實之前我也沒有實際用過, 稍稍看了一下文檔,知道里面有個ftp包能完成相關的操作. 于是我的同事就興致勃勃的拿去用了. 可用了以后缺發現了很多問題, 搞得焦頭爛額. 經過我們的努力, 終于把問題都解決了, 下面我把遇到的問題和解決方案寫下來, 以備其他想要用common-net包的朋友參考.
閱讀全文
posted @
2007-11-08 19:21
黑靈 閱讀(6010) |
評論 (5)
|
編輯
收藏
Regression testing
posted @
2007-07-31 22:27
黑靈 閱讀(1021) |
評論 (0)
|
編輯
收藏
什么是BNF范式,什么又是EBNF范式?
posted @
2007-07-16 14:55
黑靈 閱讀(11809) |
評論 (0)
|
編輯
收藏
談談Unicode編碼,簡要解釋UCS、UTF、BMP、BOM等名詞 (ZT)--轉貼
posted @
2007-06-29 17:59
黑靈 閱讀(918) |
評論 (0)
|
編輯
收藏
解決XP上安裝SQLServer2000文件掛起問題
posted @
2007-06-13 15:04
黑靈 閱讀(692) |
評論 (0)
|
編輯
收藏
[ZZ]Linux date 命令使用
posted @
2007-06-09 23:31
黑靈 閱讀(3397) |
評論 (0)
|
編輯
收藏
<
2007年6月
>
日
一
二
三
四
五
六
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
公告
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
隨筆分類
(175)
AJAX(6)
(rss)
DataBase(5)
(rss)
Do everything with Groovy(4)
(rss)
ExtJS
(rss)
J2EE(29)
(rss)
JSF(4)
(rss)
MStar Utility(2)
(rss)
ORM(9)
(rss)
RIA(3)
(rss)
Server配置(2)
(rss)
Struts(1)
(rss)
Tapestry(1)
(rss)
Unix&Linux(32)
(rss)
wap(1)
(rss)
WebWork(4)
(rss)
不編不知道,一編嚇一跳(17)
(rss)
亂七八糟(32)
(rss)
客戶端技術(1)
(rss)
正則表達式
(rss)
腳本語言(22)
(rss)
文章分類
(1)
Tomcat(1)
(rss)
博客同道
GENOW
(rss)
遠離塵囂
常用資源
Martin Fowler
Martin Fowler的文章
最新評論
1.?re: 關于spring-mvc的InitBinder注解的參數
這個里面User與User_是兩個不同的類
--mmocake
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 黑靈
主站蜘蛛池模板:
亚洲成a人无码亚洲成av无码
|
亚洲精品色在线网站
|
成人毛片免费观看视频大全
|
污视频网站免费在线观看
|
久久精品国产精品亚洲色婷婷
|
成人免费在线看片
|
又粗又长又爽又长黄免费视频
|
亚洲AV无码精品无码麻豆
|
黄页网站在线看免费
|
日日摸夜夜添夜夜免费视频
|
亚洲视频在线播放
|
四虎免费在线观看
|
中文字幕在线免费看线人
|
中文字幕在线观看亚洲日韩
|
亚洲一区二区三区AV无码
|
妞干网免费视频观看
|
久久久久久久99精品免费观看
|
亚洲精品无码久久久久秋霞
|
亚洲av成人无码久久精品
|
国产高清免费的视频
|
91麻豆国产免费观看
|
一级毛片人与动免费观看
|
狠狠色香婷婷久久亚洲精品
|
国产成人亚洲综合无码精品
|
久草免费福利在线
|
狠狠色香婷婷久久亚洲精品
|
香蕉视频在线观看亚洲
|
亚洲熟妇少妇任你躁在线观看无码
|
在线视频免费观看爽爽爽
|
波多野结衣免费一区视频
|
成年大片免费高清在线看黄
|
亚洲欧美中文日韩视频
|
亚洲精品福利网站
|
亚洲AV无码专区亚洲AV伊甸园
|
亚洲sss综合天堂久久久
|
亚洲AV无码乱码国产麻豆
|
亚洲一区二区三区在线视频
|
国产做床爱无遮挡免费视频
|
欧美三级在线电影免费
|
最近中文字幕2019高清免费
|
在线看片免费人成视频播
|