java.io.IOException: Could not find resource sql\xxMapper.xml

今天把以前的一系统布置到linux上 老是报找不到 resource

 java.io.IOException: Could not find resource sql\xxMapper.xml

在windows下面没有问题

经过多次测试发现 然来是\这个再linux下不能识别 改为sql/xxMapper.xml

就可以了。居然忽视了这个常识性的问题!!!!!斜杠和反斜杠

在这里记录一下算是备忘吧

猜你喜欢

转载自weihong01267.iteye.com/blog/2285853