黑靈客棧
黑靈的沒啥技術含量的技術博客! -> http://zjumty.iteye.com
BlogJava
|
首頁
|
發新隨筆
|
發新文章
|
聯系
|
聚合
|
管理
隨筆:204 文章:2 評論:243 引用:0
2008年8月4日
在傳輸層上壓縮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
黑靈|
編輯
收藏
<
2008年8月
>
日
一
二
三
四
五
六
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
6
公告
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
隨筆分類
(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 黑靈
主站蜘蛛池模板:
在线观看免费人成视频
|
久久99热精品免费观看牛牛
|
午夜免费福利在线观看
|
国产成人精品亚洲2020
|
91麻豆最新在线人成免费观看
|
337p日本欧洲亚洲大胆色噜噜
|
免费国产成人高清在线观看网站
|
亚洲国产老鸭窝一区二区三区
|
无码A级毛片免费视频内谢
|
亚洲伦理一区二区
|
亚洲视频免费在线看
|
亚洲噜噜噜噜噜影院在线播放
|
很黄很色很刺激的视频免费
|
亚洲永久在线观看
|
午夜毛片不卡免费观看视频
|
午夜亚洲WWW湿好爽
|
亚洲A∨精品一区二区三区
|
亚洲黄色免费观看
|
亚洲啪啪免费视频
|
国产亚洲真人做受在线观看
|
黄色免费在线网站
|
久久久亚洲欧洲日产国码是AV
|
国产精品69白浆在线观看免费
|
国产精品亚洲一区二区麻豆
|
国产精品色午夜免费视频
|
www在线观看免费视频
|
国产亚洲美女精品久久久久狼
|
无码日韩精品一区二区三区免费
|
亚洲国产日韩女人aaaaaa毛片在线
|
无码av免费毛片一区二区
|
亚洲6080yy久久无码产自国产
|
a级毛片免费观看网站
|
亚洲av无码成h人动漫无遮挡
|
最近中文字幕国语免费完整
|
亚洲日产无码中文字幕
|
99久久国产免费中文无字幕
|
亚洲中文字幕久久精品无码VA
|
xvideos亚洲永久网址
|
久久久精品2019免费观看
|
亚洲乱理伦片在线观看中字
|
亚洲自偷自偷在线制服
|