Spring mvc 获取项目运行目录的两种办法
原创 Spring mvc 获取项目运行目录的两种办法
第一种方法://获取物理路径webapp所在路径WebApplicationContextwebApplicationContext=ContextLoader.getCurrentWebApplicationContext();ServletContextservletContext=we