init template for spring