add spring init method in doc