框架:sprinMVC+spring+mybatisjava
背景:本地調試,上傳到OSS都是正常可行的。部署到服務器上就一直異常。spring
查看日誌發現錯誤以下:tomcat
Caused by: java.io.FileNotFoundException: /usr/local/tomcat7/work/Catalina/localhost/_/upload__60897a96_15b5b5fa801__7fff_00000000.tmp (Permission denied)服務器
這裏應該是說/usr/local/tomcat7/work/Catalina/localhost/_/upload__60897a96_15b5b5fa801__7fff_00000000.tmp (Permission denied) 沒有這個目錄的權限,因而去查看發現果真沒有權限。mybatis
將權限給了之後再重啓tomcat ,而後就能夠了框架