版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gingerredjade/article/details/86546641
在MyEclipse 2015版本中,发布应用到tomcat中。代码中使用System.getProperty("user.dir")获取应用发布的路径,但是获取到的路径却是MyEclipse 2015安装路径。。。
解决办法:
打开Tomcat Server,在General Information中点击launch configuration,然后选择Argument中的work directory,在other中选择tomcat路径。