原创 struts2的性能爲什麼這麼差,有性能測試截圖

最近覺得struts2性能感覺好差,然後就對struts2和springMVC3分別作了以下性能測試,結果太讓人喫驚了!機器配置是 T6600 + 2

原创 Sun VirtualBox安裝Ubuntu後與宿主系統共享文件

1.安裝好Ubuntu後點擊 Sun VirtualBox 的 設備->安裝增強功能2.這個時候光驅中多了 VBOXADDITIONS_3 的光盤,進

原创 Seam 使用心得(二)接口實現

Java裏提倡使用面向接口編程以減弱組件之間的耦合,在上一篇裏已經定義了@Localpublic interface Register { publi

原创 VirtualBox中安裝Ubuntu Server本機網絡配置

1,首先在虛擬機當中開啓第二塊網卡,並且使用bridge方式連接2,/etc/network/interfaces中添加# eth1auto eth1

原创 使用自定義Dialog

使用setView方法彈出自定義Dialogfinal View saveFolder = inflater.inflate(R.layout.sav

原创 一些java命令和工具的使用

jinfo:可以輸出並修改運行時的java 進程的opts。jps:與unix上的ps類似,用來顯示本地的java進程,可以查看本地運行着幾個java

原创 ubuntu下NFS的配置和安裝

1,安裝NFS服務apt-get install nfs-kernel-server2, 配置NFSsudo vi /etc/exports/home

原创 VirtualBox 克隆

VBoxManage clonehd <uuid>|<filename> <outputfile>

原创 ubuntu下memcached安裝

  sudo apt-get install libevent-dev ./configure make && make test sudo make install 測試是否安裝成功 啓動memcached 輸入 memcached -

原创 VirtualBox克隆ubuntu後網卡不能用的解決辦法

刪除/etc/udev/rules.d/*.rules,然後重新啓動服務器即可

原创 apache創建虛擬目錄

<IfModule alias_module> # # Redirect: Allows you to tell clients about documents that used to # exist in your

原创 配置terracotta高可用集羣

由於terracotta肩負着保存session的重任,如果一旦down掉,所有的用戶session將會丟失,所以terracotta要做ha。ter

原创 Android中的單位

px(像素):屏幕上的點。in(英寸):長度單位。mm(毫米):長度單位。pt(磅):1/72英寸。dp(與密度無關的像素):一種基於屏幕密度的抽象單

原创 ubuntu server console亂碼解決辦法

/var/lib/locales/supported.d/local修改爲 en_US.UTF-8 UTF-8/etc/default/locale修

原创 正則表達式的貪婪,勉強,獨佔模式

public static void main(String[] args) { String s = "xxyyxxxyxxyxx"; Pattern greedy = Pattern.compile("xx(.*)xx"); P