Spring doesn't create bean if @Configuration is not present. Hence adding @Configuration to config class