![Java EE 8 Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/29/36700029/b_36700029.jpg)
上QQ阅读APP看书,第一时间看更新
There's more...
The init() behavior seems like @PostConstruct, but this last one is executed before init(), so keep it in mind when using both.
The @PostConstruct is executed right after the default constructor.
Be careful when using the destroy() method and avoid holding any memory reference; otherwise, you can mess up with the servlet life cycle and run into memory leaks.