windows系统中 tomcat运行项目 其中
System.getProperty("user.dir") 输出的位置是当前tomcat所在的位置的bin目录
linux
System.getProperty("user.dir")输出的位置是当前tomcat所在位置webapps目录里
本文介绍了在 Windows 和 Linux 系统下,通过 Tomcat 运行项目时 System.getProperty(user.dir) 的输出差异。Windows 下指向 bin 目录,而 Linux 下则指向 webapps 目录。
windows系统中 tomcat运行项目 其中
System.getProperty("user.dir") 输出的位置是当前tomcat所在的位置的bin目录
linux
System.getProperty("user.dir")输出的位置是当前tomcat所在位置webapps目录里
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率
1097
1193