Skip to content

Instantly share code, notes, and snippets.

@springcome
Last active December 25, 2015 12:09
Show Gist options
  • Save springcome/6974203 to your computer and use it in GitHub Desktop.
Save springcome/6974203 to your computer and use it in GitHub Desktop.
mysql - dataSource example
<bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://yourdomain/database" />
<property name="username" value="*****" />
<property name="password" value="*****" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment