refactored and configuration resources and spring bean step by step
binding more constructor, add    <context:annotation-config/>