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:
<sqlMap resource="it/mypakage/Example.xml" />
(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:
<sqlMap url="file:///c:/myProject/www/WEB-INF/iBatis/Example.xml" />
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 ;
<sqlMap url="file:///WEB-INF/iBatis/Example.xml" /> and
<sqlMap url="file:///Example.xml" /> and
<sqlMap url="file:Example.xml" /> 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.2.1.4 Packet Tracer - Configuring SSH.pka
在“Cisco - Configuring 802.1X Port-Based Authentication”这个压缩包中,我们可以预见到这是一份关于如何在Cisco网络设备上配置802.1X端口认证的详细指导文档。以下将深入探讨802.1X协议的核心概念、其在Cisco...
标题与描述提到的文档“Configuring 802.1q Trunking Between 3550 and Catalyst Switches Running Integrated Cisco OS.pdf”专注于讲解如何在Cisco Catalyst 3550交换机和运行集成Cisco IOS的其他Catalyst系列...
Microsoft.Press.MCTS.Self.Paced.Training.Kit.Exam.70.680.Configuring.Windows.7.Oct.2009.rar
在安装和配置SharePoint 2013时,首先需要准备环境。这通常涉及搭建一个包含专门角色的服务器架构,例如独立的域控制器、独立的SQL Server和专门用于SharePoint的服务器。... 在开始安装SharePoint前,需要运行先决...
Microsoft Windows Server 2012 70-410 Series Introduction
EMC CX200 Configuring.ppt
6. **书籍内容概览**:文件提到了书籍的内容概览,包括引言(Introduction)和第一章(Chapter 1),标题是“Installing and Configuring”,这表明书籍的内容覆盖了Exchange Server 2010的安装和配置过程。...
9.2.1.4 Packet Tracer - Configuring Static NAT.pka
About Flex. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Developing applications . . . . . . . . . . . . . . . . . . . . . . . . . . ....
实验4 Packet Tracer - Configuring Rapid PVST.pka
4.1.1.11 Packet Tracer - Configuring Extended ACLs Scenario 2.pka
此包是AR9331主控的...Configuring uclibcxx. root@OpenWrt:/tmp# opkg install node_v0.10.17-2_ar71xx.ipk Installing node (v0.10.17-2) to root... Configuring node. root@OpenWrt:/tmp# node -v v0.10.17
标题中的"Configuring_SMPP.rar"表明这是一个关于配置SMPP(Short Message Peer-to-Peer)协议的资源文件,而"site:www.pudn.com"则可能是该文件的来源网站,通常这类网站会分享各种技术文档和教程。描述中提到"这是...
About this Book .................................................................................................... 9 About you The Reader ..............................................................
2.2 About VxWorks Configuration ................................................................................... 7 2.2.1 Default Configuration and Images ..............................................
About this guide ........................................................................................................................... 1-14 Additional information ..................................