Skip to content

Instantly share code, notes, and snippets.

@yanhua365
Created April 27, 2014 07:14
Show Gist options
  • Save yanhua365/11339453 to your computer and use it in GitHub Desktop.
Save yanhua365/11339453 to your computer and use it in GitHub Desktop.
Spring中配置简单的JDBC连接
<bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="username" value="root"/>
<property name="password" value="123456"/>
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/test_bxn?useUnicode=true&amp;characterEncoding=UTF-8"/>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment