ContextLoader.getCurrentWebApplicationContext()和WebApplicationContextUtils.getWebApplicationContext(ServletContext servletContext)区别是什么?两个方法都能得到WebApplicationContext,请问有什么区别?为什么WebApplicationContextUtils.getWebApplicationContext需要ServletContext作为参数,而它却更多被使用?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
走同样的路,发现不同的人生