晓筱时代 2009-02-27 15:46
浏览 212
已采纳

something about configuring ibatis.

Hi,
Actually my iBatis xml config files are under the classpath so, to include an xml file in the main configuration file (that is under WEB-INF/iBatis folder) I usually write:

(and it works)

I need to move all my files under WEB-INF/iBatis directory of my web application.
I read iBatis manual and tried with the "url" attribute, like this:

and it works!

Now I want to make the path relative to the project (and not absolute to my hard drive c: like in the above example).
I tried with ;
and
and
and
and a million of other ways, but it doesn't work

What is the correct way to use a relative path with the url attribute?

  • 写回答

2条回答 默认 最新

  • iteye_4277 2009-02-27 15:53
    关注

    and
    and
    and

    都是错误的

    url 必须跟一个有效的绝对地址

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?