https://blog.csdn.net/yang292292/article/details/51944736

 

今天在本机(win7)测试正常的程序到了线上linux环境下就是跑步起来,tomcat总是卡在loading config.properties这里

换了一个tomcat也是这种情况,以前是没有问题的。最后怀疑是config.properties文件的问题,然后通过

vim 查看文件的 fileformat

命令如下:

:set fileformat

结果显示的是 dos

最后通过命令修改为:

:set fileformat=unix

 

https://blog.csdn.net/lanchunhui/article/details/51333915

查看和设置文件格式(fileformat)

:set ff?

会在底端提示:fileformat=dos
将 dos 格式设置为 unix

:set ff=unix
posted on 2018-08-27 10:07  lxbkylx  阅读(295)  评论(0编辑  收藏  举报