do some refactor about the super and sub configutation of spring container