這兩天在整合ssh框架,百度N久終於解決了。這個No result defined for action異常其實是在structs2中中有一個插件struts2-convention-plugin-2.1.8.jar,這個插件是2.1版本中新添加的默認核心包,這個插件是實現Struts2的零配置,就是因爲多了這個jar纔會導致這樣報錯。
解決方法:(1)把struts2-convention-plugin-2.1.8.jar包去掉
(2)設置namespace命名空間
這兩天在整合ssh框架,百度N久終於解決了。這個No result defined for action異常其實是在structs2中中有一個插件struts2-convention-plugin-2.1.8.jar,這個插件是2.1版本中新添加的默認核心包,這個插件是實現Struts2的零配置,就是因爲多了這個jar纔會導致這樣報錯。
解決方法:(1)把struts2-convention-plugin-2.1.8.jar包去掉
(2)設置namespace命名空間
配置gralde 調整gradle的倉庫使用阿里鏡像,在.gradle下創建init.gradle,並輸入以下內容: allprojects { repositories { maven {
1 joina 爲相關聯的實體或集合指定一個別名select mate from Cat as cat inner join cat.mate
Exception in thread "main" org.springframework.orm.hibernate4.HibernateSys