update for spring and example