原创 S2SH使用OpenSessionInViewFilter出現InvalidDataAccessApiUsageException

    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (Flus

原创 驗證碼無法顯示,服務器端出現異常:Could not initialize class sun.awt.X11GraphicsEnvironment

    異常信息:    Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment    Cau

原创 no matching editors or conversion strategy

        spring的配置文件applicationContext.xml用攔截器來代理事務,Tomcat啓動報如題所示的錯誤,找到的原因如下:    解決辦法是:    在事務中加上下面語句    <property name="

原创 a different object with the same identifier value was already associated with the session

    在hibernate中同一個session裏面有了兩個相同標識但是是不同實體    我用hibernate來更新對象的時候出現這個問題,之後執行hibernateTemplate的clear方法就解決了,應該是session裏面已經

原创 SOLID原則

    類設計的SOLID原則是面向對象範式的核心。    ·單一職責原則(Single Responsible Principle,SRP):對於一個類應該僅有一個         引起她變化的原因。    ·開放-封閉原則(Open C

原创 Spring事務配置的五種方式

    前段時間對Spring的事務配置做了比較深入的研究,在此之間對Spring的事務配置雖說也配置過,但是一直沒有一個清楚的認識。通過這次的學習發覺Spring的事務配置只要把思路理清,還是比較好掌握的。    總結如下:    Spr

原创 個人網站-VerySu,上線了!http://www.verysu.com

    我自己開發的個人網站——VerySu上線了!!!     歡迎大家訪問:     http://www.verysu.com

原创 vsftpd: refusing to run with writable root inside chroot()

    Linux CentOS 安裝了ftp,vsftpd2.3.5,創建了一個新的本地用戶,然後想用本地用戶登錄ftp時出現了:vsftpd: refusing to run with writable root inside chro

原创 CentOS64位用John破解簡單密碼,No password hashes loaded

    1、下載john-1.8.0.tar.gz   2、安裝:        ①解壓:tar zxfm john-1.8.0.tar.gz        ②cd src/        ③make clean linux-86-64  

原创 解決vsftpd編譯時的錯誤:could not read symbols: File in wrong format

編譯vsftpd時,出現could not read symbols: File in wrong format錯誤提示,後搜尋相關資料,是因爲vsftpd的一個安裝文件沒有考慮到64位平臺庫文件位置。  如果的的系統是64位平臺,解決辦法

原创 Collection has neither generic type or OneToMany.targetEntity() defined

        Collection has neither generic type or OneToMany.targetEntity() defined     在一對多雙向關聯關係裏,Set如果用泛型,就需要在@OneToMany指

原创 HTTP Status 500 - X is not mapped [from X]; nested exception

    本來是有用@Entity 和@Table註解映射,之後發現,是因爲@Table導入的包導錯了。

原创 start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart:

    用Ubuntu遠程登錄虛擬host時出現:    start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Conne

原创 Struts2 Problem Report: No result defined for action ... and result exception

      每    當Struts2爆出這樣的異常,會很鬱悶,原因太多了,只能一一的檢查。有的說input頁面沒指定,有的說namespace有問題,有的說你對應的result有問題,有的說validate不通過,等等。但是在這裏,我卻