diff --git a/src/main/java/net/educoder/controller/CallbackController.java b/src/main/java/net/educoder/controller/CallbackController.java index fc79ed6..e20f9a8 100644 --- a/src/main/java/net/educoder/controller/CallbackController.java +++ b/src/main/java/net/educoder/controller/CallbackController.java @@ -37,7 +37,7 @@ public class CallbackController { private static List ERROR_MSG_LIST = null; @PostMapping("/evaluationResult") - public String evaluation(@RequestBody Map params) { + public String evaluation(@RequestParam Map params) { log.info("回调请求参数:{}", params); if (params == null) { diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 427c998..38faf66 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,3 +1,15 @@ +spring: + # 数据库配置 + datasource: + url: jdbc:mysql://rm-bp13v5020p7828r5rso.mysql.rds.aliyuncs.com:3306/testbridge?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false + username: testeducoder + password: TEST@123 + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + initialSize: 50 + minIdle: 50 + maxActive: 100 + validationQuery: SELECT 1 ## 评测钉钉机器人配置 evaluation: token: 1069c45d4dfab187bb95599faeaf3687b630f79eda0d6fff914a18ee9e25db6f diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 27ff96f..23a99e0 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,3 +1,15 @@ +spring: + # 数据库配置 + datasource: + url: jdbc:mysql://rm-bp13v5020p7828r5rso.mysql.rds.aliyuncs.com:3306/testbridge?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false + username: testeducoder + password: TEST@123 + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + initialSize: 50 + minIdle: 50 + maxActive: 100 + validationQuery: SELECT 1 ## 评测钉钉机器人配置 evaluation: token: a28abafca1eda791b2b09bf8a7f37d877cc27da986b92c8e1bd1157535d76fdc diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ff10690..443815e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,17 +6,6 @@ server: spring: profiles: active: dev - # 数据库配置 - datasource: - url: jdbc:mysql://rm-bp13v5020p7828r5rso.mysql.rds.aliyuncs.com:3306/testbridge?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false - username: testeducoder - password: TEST@123 - driver-class-name: com.mysql.jdbc.Driver - type: com.alibaba.druid.pool.DruidDataSource - initialSize: 50 - minIdle: 50 - maxActive: 100 - validationQuery: SELECT 1 # redis配置 redis: host: 127.0.0.1