黑靈客棧
黑靈的沒啥技術含量的技術博客! -> http://zjumty.iteye.com
BlogJava
|
首頁
|
發新隨筆
|
發新文章
|
聯系
|
聚合
|
管理
隨筆:204 文章:2 評論:243 引用:0
2009年8月21日
在傳輸層上壓縮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)
|
編輯
收藏
<
2009年8月
>
日
一
二
三
四
五
六
26
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
31
1
2
3
4
5
公告
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
隨筆分類
(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 黑靈
主站蜘蛛池模板:
亚洲精品**中文毛片
|
久久精品国产亚洲av麻
|
爱情岛论坛免费视频
|
亚洲中文字幕无码中文
|
亚洲中文字幕无码爆乳
|
亚洲人成人77777在线播放
|
久久精品国产精品亚洲色婷婷
|
亚洲区日韩区无码区
|
亚洲国产精品综合久久网络
|
国产一区在线观看免费
|
四虎1515hm免费国产
|
亚洲 自拍 另类小说综合图区
|
免费在线观看黄网站
|
四虎1515hm免费国产
|
亚洲国产精品成人久久蜜臀
|
亚洲AV无码一区二区三区国产
|
成人免费无毒在线观看网站
|
好大好深好猛好爽视频免费
|
国产三级免费电影
|
国产精品亚洲成在人线
|
亚洲国产日韩在线成人蜜芽
|
亚洲欧美日韩一区二区三区在线
|
美女黄色免费网站
|
一级毛片免费观看
|
日韩中文无码有码免费视频
|
国产成人精品曰本亚洲79ren
|
亚洲av无码专区在线播放
|
亚洲伊人精品综合在合线
|
亚洲成av人片在线天堂无
|
99在线免费视频
|
亚洲精品无码AV中文字幕电影网站
|
亚洲日韩国产一区二区三区
|
亚洲国产老鸭窝一区二区三区
|
亚洲av日韩av高潮潮喷无码
|
一个人免费观看视频www
|
无码一区二区三区免费
|
99久久久国产精品免费无卡顿
|
男女免费观看在线爽爽爽视频
|
亚洲色大成网站www永久
|
日韩精品无码一区二区三区免费
|
亚洲爱情岛论坛永久
|