lundi 16 mai 2016

using memory database in java

guys i have that xml that connects on my locl db .. but i am making test cases and i want to make it on memory db .. here is my code

.......
<bean class="org.springframework.jdbc.datasource.DriverManagerDataSource"
    id="dataSource">
    <property name="driverClassName" value="com.mysql.jdbc.Driver" ></property>
    <property name="url" value="jdbc:mysql://localhost:3306/mydb"></property>
    <property name="username" value="root"></property>
    <property name="password" value="root"></property>
</bean>
.......

i believe that i should change the url .. so what should i write instead of it ?? .. i cant find anything in the internet that talks about that

Aucun commentaire:

Enregistrer un commentaire