Apache Struts2 Spring 插件使用了先前已... 笔记

Apache Struts2 Spring 插件使用了先前已关闭的资源

由 Daniel Owens 通过 Fulldisclosure 于 11 月 1 日发布 描述 Apache Struts2 Spring 插件通过 try-with-resources 块打开一个 Spring ApplicationContext,但在该块之外继续使用已关闭的资源,从而导致未捕获的 IllegalStateException。此问题阻碍了正常功能,反映出代码质量、代码审查标准及流程存在不足,尽管其本身在生产环境中并不构成过度严重的风险……