refactor the configuration file about spring