使用@PostController注解,详见https://www.cnblogs.com/YuyuanNo1/p/8184003.html
里面还有@PreConstruct注解说明,这是在servlet关闭之前执行的方法。
它们都只执行一次。