How to Define a MySql datasource bean via XML in Spring
I've looked over the documentation to define a bean. I'm just unclear on what class file to use for a Mysql database. Can anyone fill in the bean definition below? <bean name="dataSource" class=""> <property name="driverClassName" value="" /> <property name="url" value="mysql://localhost/GameManager" /> <property name="username" value="gamemanagertest" /> <property name="password" value="1" /> </bean> Both the answers are appropriate for the question. But just for an FYI if you're going to use DriverManagerDataSource as your datasource, every call to your datasource bean will create a new