在application.properties文件中:
原本的:
spring.datasource.url=jdbc:mysql://localhost:3306/springbootDate
修改后:
spring.datasource.url=jdbc:mysql://localhost:3306/springbootDate?characterEncoding=UTF-8`
在application.properties文件中:
原本的:
spring.datasource.url=jdbc:mysql://localhost:3306/springbootDate
修改后:
spring.datasource.url=jdbc:mysql://localhost:3306/springbootDate?characterEncoding=UTF-8`