1 [root@localhost ~]# cat /etc/fstab 2 3 # 4 # /etc/fstab 5 # Created by anaconda on Sat Nov 3 12:03:31 2018 6 # 7 # Accessible filesystems, by reference, are maintained under '/dev/disk' 8 # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8…
问题描述:最近一个项目开发环境是windows系统,正式环境是linux系统.验证码图片在开发环境正常,但是在正式环境下一直报404. 问题原因:File dir = new File(realPath + "resource\\picture"); 这一句文件路径写法有问题,linux系统不支持反斜杠的写法. 解决方法:将\\改为/即可,这样在windows系统与linux系统下均正常.正确写法:File dir = new File(realPath + "resourc…