标签:utf-8 change cal 连接池 local depend drive log -name
pom.xml
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.40</version> </dependency> <!-- c3p0数据源 --> <dependency> <groupId>c3p0</groupId> <artifactId>c3p0</artifactId> <version>0.9.1.2</version> </dependency>
application.properties
spring.datasource.type=com.mchange.v2.c3p0.ComboPooledDataSource spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8 spring.datasource.username=root spring.datasource.password=root
标签:utf-8 change cal 连接池 local depend drive log -name
原文地址:http://www.cnblogs.com/m4tech/p/7264385.html