I have a web application which needs mybatis to connect to a sql server.
I have a separate property file as jdbc.properties which contains the dburl, username, password etc. and mybatis-config.xml file has following to read that
<properties resource="jdbc.properties"/>
If I add jdbc.properties file to the src folder it works fine.
But I have several other property files located at "catalina_home/bin/config" folder so I would like to move my jdbc.properties file also to that location.
But mybatis is not able to read the property file from their no matter how I changed the path to the resource.
However if I moved the jdbc.properties file to the "catalina_home/lib" folder it works. Therefore then I tries resource path like this "../bin/config" but it didn't worked either.
My question is, can I move the jdbc.properties file to the bin/config folder and let mybatis to read it from there.
EDIT: Since my production environment may change its CATALINA_HOME location I cannot give the full path to the config file location.