added spring configurations

Added spring configurations to support hibernate