java - FileNotFoundException while running Spring and Ibatis based application on Tomcat -
i using spring, ibatis orm. app-config.xml
<bean id="datasource" class="org.apache.commons.dbcp.basicdatasource" destroy-method="close"> <property name="driverclassname" value="com.mysql.jdbc.driver" /> <property name="url" value="jdbc:mysql://192.168.10.50/lmexdb_v1" /> <property name="username" value="lmexdba" /> <property name="password" value="lmexdba123#" /> </bean> <bean id="sqlmapclient" class="org.springframework.orm.ibatis.sqlmapclientfactorybean"> <property name="configlocation" value="classpath:com/platysgroup/lmex/server/mobile/dao/ibatis/sqlmapconfig.xml" /> </bean> <bean id="mobilecontroller" class="com.platysgroup.lmex.server.controller.mobilecontroller"> <property name="announcementservice" ref="announcementservice"></property> <property name="courseservice" ref="courseservice"></property> <property name="userservice" ref="userservice"></property> </bean>
and have sqlmapconfig.xml
file in src/webapp/spring.
but when run application on tomcat show me exception:
java.io.filenotfoundexception: class path resource [com/platysgroup/lmex/server/mobile/dao/ibatis/sqlmapconfig.xml] cannot opened because not exist
put in src
, , available
if using maven project add resource
Comments
Post a Comment