在讀了很多資料之後,我寫了一個簡單的demo application測試我對spring retry 的了解。然後再把這個apply到我的項目裡。項目裡的架構比較複雜,因此又學到一些細節。由於有demo app的基本框架練習,不至於迷失,也可以隨時做簡單的測試。

這個測試 retryable annotation

Screen Shot 2018-12-07 at 12.35.46 PM

這個測試retryTemplate implementation。

Screen Shot 2018-12-07 at 12.35.33 PM

可以到我的github看我對spring retry更多的心得。

僅此給大家參考。

 

 

 

Posted in ,

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from 矽谷資深女工程師 Lucy

Subscribe now to keep reading and get access to the full archive.

Continue reading