diff --git a/zetark-oauth2-server/pom.xml b/zetark-oauth2-server/pom.xml index 15231be..f284f6e 100644 --- a/zetark-oauth2-server/pom.xml +++ b/zetark-oauth2-server/pom.xml @@ -71,7 +71,7 @@ mysql mysql-connector-java - 5.1.25 + 8.0.11 diff --git a/zetark-oauth2-server/src/main/resources/resources.properties b/zetark-oauth2-server/src/main/resources/resources.properties index bb9bf30..3cf3c37 100644 --- a/zetark-oauth2-server/src/main/resources/resources.properties +++ b/zetark-oauth2-server/src/main/resources/resources.properties @@ -1,7 +1,7 @@ #dataSource configure -connection.url=jdbc:mysql://localhost:3306/shiro-oauth2 +connection.url=jdbc:mysql://localhost:3306/oauth2?useUnicode=true&allowPublicKeyRetrieval=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai connection.username=root -connection.password=root +connection.password=ikmcy2O1904 #druid datasource druid.initialSize=10 druid.minIdle=10 @@ -9,7 +9,8 @@ druid.maxActive=50 druid.maxWait=60000 druid.timeBetweenEvictionRunsMillis=60000 druid.minEvictableIdleTimeMillis=300000 -druid.validationQuery=SELECT 'x' +druid.driverClassName=com.mysql.cj.jdbc.Driver +druid.validationQuery=SELECT 1 druid.testWhileIdle=true druid.testOnBorrow=false druid.testOnReturn=false diff --git a/zetark-oauth2-server/src/main/resources/spring-config.xml b/zetark-oauth2-server/src/main/resources/spring-config.xml index b52b233..38451c8 100644 --- a/zetark-oauth2-server/src/main/resources/spring-config.xml +++ b/zetark-oauth2-server/src/main/resources/spring-config.xml @@ -39,7 +39,7 @@ - +