Spring framework principle and detailed construction steps