摘要: 1. @PostConstruct和@PreConstruct @PostConstruct说明 被@PostConstruct修饰的方法会在服务器加载Servlet的时候运行,并且只会被服务器调用一次,类似于Serclet的inti()方法。被@PostConstruct修饰的方法会在构造函数之后 阅读全文
posted @ 2020-03-05 12:11 Jtianlin 阅读(190) 评论(0) 推荐(0) 编辑