2. spring框架的思路, 在WEB-INF/web.xml中 , 創(chuàng)建一個(gè)webAppRootKey的param, 指定一個(gè)值(默認(rèn)為webapp.root)作為鍵值, 然后通過(guò)Listener , 或者Filter , 或者Servlet 執(zhí)行String webAppRootKey = getServletContext().getRealPath("/"); 并將webAppRootKey對(duì)應(yīng)的webapp.root 分別作為Key , Value寫(xiě)到System Properties...
www.dbjr.com.cn/article/369...htm 2025-6-6