add a bean for configuration
add some comments for ConfigService