[spring] rest service

Corrected problems with the rest service