Benellingson在logspot上分享了其将 www.nofluffjuststuff.com网站由JavaWeb应用迁移至Groovy的过程。或许是对Struts2情有独钟,他并没有使用Grails,但是业务逻辑转向用Groovy实现。
High-level Steps:
1. Implement Automated Unit Testing w/ Groovy
2. Achieve a high level of code coverage (+70% should be good)
3. Start changing application .java files to .groovy
4. Remove getters and setters
5. Remove dead code
6. Use closures
7. Use more Groovy sugar such as file and XML processing
8. refactor, test.. repeat
http://benellingson.blogspot.com/2009/11/case-study-migrating-java-web-app-to.html