added spring configuration to support debug mode