init spring code