Home > Uncategorized > Spring

Spring

July 20th, 2010

After establishing our own library for using either HSQL or H2 databases for Unit testing I’ve found that Spring provides a really simple way to do this already. I’m not sure at what point they added it but it appears to be there now.

This means you can not just H2 and HSQL but also DERBY.
The following is the entry you can use:

in your spring config files. So far I’ve found that IDEA picks this up and allows you to include the xsd details you need same as importing packages in a class.

In case it doesn’t you can try adding the following:


xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xsi:schemaLocation=" http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"

G

Categories: Uncategorized Tags:
  1. spower5
    July 22nd, 2010 at 11:39 | #1

    Hi Gerwood,

    This sounds great. Can you please add the code in, as it seems to be missing in your post…?

    Also is there a webpage or documentation you can post a link to which can go into more detail on this subject?

Comments are closed.