可能是你配置类拦截器,访问的图片被拦截器拦截了
只需在springmvc的配置文件中添加以下语句即可
<mvc:resources location="/upload/" mapping="/upload/**" />