springmvc读取服务器磁盘图片,显示于前台页面 在项目中的config目录下有一个文件,在后台程序中获取 它并使用。 springmvc提供一个方法:File file = new ClassPathResource("NonTaxVoucherCheck.exe").getFile();