String realPath = request.getRealPath("WEB-INF/classes/com/properties/devicetype.properties"); 以上为获取路径的最正确做法,因此,properties可以放在com包下,或者src目录下. Properties props = new Properties(); ArrayList al = new ArrayList(); try { InputStream in = new Buffere
最近项目中使用到Spring3,在感叹Spring3注解配置清爽的同时竟然出现了这个不和谐的事情,实在无法忍受 问题:部署项目后程序加载或用浏览器访问时出现类似的警告,2011-01-19 10:52:51,646 WARN [org.springframework.web.servlet.PageNotFound] -<No mapping found for HTTP request with URI [/sandDemo001/images/1.jpg] in DispatcherServ