黑靈客棧
黑靈的沒啥技術含量的技術博客! -> http://zjumty.iteye.com
BlogJava
|
首頁
|
發新隨筆
|
發新文章
|
聯系
|
聚合
|
管理
隨筆:204 文章:2 評論:243 引用:0
2008年5月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
黑靈 閱讀(1229) |
評論 (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)
|
編輯
收藏
<
2008年5月
>
日
一
二
三
四
五
六
27
28
29
30
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
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 黑靈
主站蜘蛛池模板:
亚洲网站在线免费观看
|
亚洲AV无码久久
|
亚洲综合国产精品第一页
|
国产亚洲3p无码一区二区
|
亚洲 日韩经典 中文字幕
|
国产免费人成视频在线播放播
|
99在线观看精品免费99
|
国产免费av片在线播放
|
亚洲精品美女在线观看
|
香蕉免费看一区二区三区
|
国产乱辈通伦影片在线播放亚洲
|
一级毛片免费一级直接观看
|
无码乱肉视频免费大全合集
|
亚洲AV无码国产精品麻豆天美
|
a毛片在线还看免费网站
|
免费在线观看亚洲
|
亚洲校园春色另类激情
|
无码AV片在线观看免费
|
亚洲精品自产拍在线观看
|
精品一区二区三区免费
|
亚洲男人第一无码aⅴ网站
|
亚洲人成电影网站色
|
最近中文字幕完整免费视频ww
|
国产偷国产偷亚洲清高动态图
|
老湿机一区午夜精品免费福利
|
一二三四免费观看在线电影
|
亚洲第一网站免费视频
|
成年女人色毛片免费看
|
亚洲日韩乱码中文无码蜜桃
|
久久成人免费大片
|
亚洲成AV人片在线观看无
|
久久久精品视频免费观看
|
久久精品国产亚洲av水果派
|
久久精品私人影院免费看
|
亚洲成人免费在线观看
|
四虎永久免费地址在线观看
|
国产VA免费精品高清在线
|
久久久久一级精品亚洲国产成人综合AV区
|
最好免费观看高清在线
|
亚洲人成影院在线
|
中文字幕成人免费视频
|