在配置文件中加入:
spring.datasource.url=jdbc:mysql://localhost:3306/student?useUnicode=true&characterEncoding=utf8
localhost:数据库服务器ip
student:数据库表名
在配置文件中加入:
spring.datasource.url=jdbc:mysql://localhost:3306/student?useUnicode=true&characterEncoding=utf8
localhost:数据库服务器ip
student:数据库表名