java GC对Servlet的回收是怎么样的? 和回收其他对象一样么?
收起
有区别,如果servlet发生问题或者web服务器被关闭等时会先调用destroyed函数然后再回收,或者直接调用destroyed方法就之后回收。 总之,会先调用destroyed再回收
报告相同问题?