diff --git a/build.gradle b/build.gradle index b5298ad..3a53b41 100644 --- a/build.gradle +++ b/build.gradle @@ -42,3 +42,11 @@ dependencies { tasks.named('test') { useJUnitPlatform() } + +tasks.withType(JavaCompile) { + options.encoding = 'UTF-8' +} + +tasks.withType(Test) { + systemProperty 'file.encoding', 'UTF-8' +} \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4e54a68..b2473d3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -3,7 +3,5 @@ spring.datasource.url=jdbc:p6spy:mysql://47.106.93.245:9003/service spring.datasource.username=root spring.datasource.password=qingyu23. spring.datasource.driver-class-name = com.p6spy.engine.spy.P6SpyDriver -#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -