added spring demo code