在项目中用到System.getProperty(“user.dir”),但是显示的路径是eclipse的workspace的路径?
双击或F3打开tomcat server,
在General Information中点击Open launch configuration,
然后选择Arguments,
最下面的Work directory,
在other中选择tomcat中bin文件夹的路径,eg:
j:\development-tool-00\apache-tomcat-8.5.32\bin