问题描述:最近一个项目开发环境是windows系统,正式环境是linux系统.验证码图片在开发环境正常,但是在正式环境下一直报404. 问题原因:File dir = new File(realPath + "resource\\picture"); 这一句文件路径写法有问题,linux系统不支持反斜杠的写法. 解决方法:将\\改为/即可,这样在windows系统与linux系统下均正常.正确写法:File dir = new File(realPath + "resourc…
http://blog.csdn.net/autofei/article/details/6579320 假设两个文件FILE1和FILE2用集合A和B表示,FILE1内容如下: a b c e d a FILE2内容如下: c d a c 基本上有两个方法,一个是comm命令,一个是grep命令.分别介绍如下: comm命令 , Compare sorted files FILE1 and FILE2 line by line. With no options, produce three-…