Added an AppConfig class to configure Spring