一、系统环境

客户端:Win10 1903;IDEA Ultimate 2020.1.3;

服务器:Ubuntu20;JDK1.8;Tomcat9.0.43

二、报错现象

运行Tomcat后,提示运行失败,如图所示

提示没有权限写入文件:

Failed to transfer file 'D:\boyLen\Java\Spring4_remote\out\artifacts\Spring4_remote_war_exploded\index.jsp': could not create folder "sftp://192.168.3.22:23/Spring4_remote_war_exploded". (Permission denied)

三、解决方案

PyCharm的Run——Edit Configuration中丢失了服务器保存路径信息,如下图:

直接将框中路径补全:

就可以正常运行了。

更多推荐