Generator for spring and angularjs