source: trunk/web-service/src/test/resources/nl/nbic/pmid2doi/test-context.xml @ 8

Last change on this file since 8 was 8, checked in by kees.burger@…, 6 years ago

initial commit

File size: 1.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3    xmlns:context="http://www.springframework.org/schema/context" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
4    xsi:schemaLocation="
5        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
6        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
7        http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd">
8   
9    <context:component-scan base-package="nl.nbic.pmid2doi.impl" />
10   
11    <bean class="org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate">
12        <constructor-arg ref="dataSource" />
13    </bean>
14   
15    <jdbc:embedded-database id="dataSource" type="H2">
16        <jdbc:script location="/nl/nbic/pmid2doi/h2-test.sql" />
17    </jdbc:embedded-database>
18</beans>
Note: See TracBrowser for help on using the repository browser.