Spring Rest practice code