spring-3

    2熱度

    1回答

    Spring中有沒有一種方法(使用TaskExecutor)並行執行多個任務,並等待(障礙)直到所有任務完成? 我在這裏找到一個例子http://www.mkyong.com/spring/spring-and-java-thread-example/ 它使用了一個無限循環。 Spring是否提供了更好的方法?

    0熱度

    1回答

    我是Spring的新手,並且正在將Spring 2.5 Web應用升級到3.2.3。我遇到了應用程序首頁的錯誤。 錯誤是Bean類的無效屬性'commandClass'。這個網絡應用程序已運行約5年,所以 問題必須是春季2.5至3.2的變化。我必須有一些線路錯誤,有什麼想法? 完整的錯誤是: Error creating bean with name '/new_candidate.html' d

    0熱度

    4回答

    當我嘗試在tomcat服務器中部署應用程序時出現以下錯誤。請幫我解決這個問題。 localhost:8080/EnhancedRoyaltyTool /是我的主頁,它拋出錯誤。 日誌消息: Aug 02, 2013 8:33:37 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache To

    2熱度

    1回答

    我嘗試使用jsonp數據類型執行ajax請求,這是由於跨羣集環境中的域問題導致的。 我可以對沒有@RequestBody參數映射的方法發出jsonp請求,但是當我嘗試使用@RequestBody參數實現RequestMapping時,我得到一個415 Unsupported Media Type錯誤。 通常當我得到這個問題時,它是由於某些屬性在json對象發佈和它映射到Spring的Java對象之

    2熱度

    1回答

    我有一個Servlet過濾器宣稱,像這樣: @Component public class BlahBlahFilter extends OncePerRequestFilter implements Filter { 與財產申報像這樣: @Autowired @Qualifier("appProperties") AppProperties properties; 我有同樣的自動裝

    0熱度

    1回答

    我們正在升級到hibernate 4.2.5.final和Spring 3.2.4的過程中,我們需要刪除getHibernateTemplate()並使用getSessionFactory().getCurrentSession()。我只是想知道是否有替代getHibernateTemplate().find(query, param);?爲例子有很多很多像項目如下: public List<T>

    5熱度

    2回答

    我有一個使用Maven的多模塊Spring項目。我使用Spring 3.2.3和註解配置。 我有以下佈局: parent common (depends on parent) webapp (depends on parent, common, module1, module2) module1 (depends on parent) module2 (de

    2熱度

    2回答

    簡化代碼(我正在使用Spring 3.1.4)。 下面是我想要自動裝配類: public class MyCoolClass { @Autowired public MyCoolClass( @Qualifier("CoolBean1") SomeOtherClass1 foo1, @Qualifier("CoolBean2") SomeOtherCla

    0熱度

    1回答

    我使用FlatFileItemReader通過Spring Batch讀取CSV文件。但是要求是列順序不是恆定的並且可以改變。 那麼我該如何處理呢?我相信彈簧3.0中缺少setFirstLineIsHeader。所以不能使用它。

    1熱度

    2回答

    我向我的客戶提供了一個高度可定製的應用程序,它完全由自己完成。但是如果我的客戶想要覆蓋任何控制器,我想用他們的實現替換我的實現。然而,只是覆蓋控制器會導致映射的模糊定義。 我一直在使用組件掃描來加載bean。 的潛在解決方案來到我的腦海裏有: 使用組件掃描儀與自定義過濾器排除? (這似乎不是那麼容易) 使用xxxxPostProcessor刪除一些bean? (如何?) 任何幫助嗎?