template of spring restful application