删除批次查询缓存

This commit is contained in:
xbx 2024-05-27 13:48:01 +08:00
parent 4a25704e8f
commit a5dc424f29
2 changed files with 1 additions and 2 deletions

View File

@ -101,7 +101,6 @@ public class CenterController {
}
}
@GetMapping("/getRateByBatch")
@Cacheable(value = "getRateByBatch", key = "'getRateByBatch' + #batch+#college+#level")
public Result<JSONObject> getRateByBatch(@RequestParam("batch")String batch, @RequestParam("college") String college, @RequestParam("level")String level){
if (level.equals("cet4")){
return cet4Service.getRateByBatch(college,batch);

View File

@ -156,7 +156,7 @@ spring:
slow-sql-millis: 5000
datasource:
master:
url: jdbc:mysql://82.157.76.162:3306/jeecg-boot2?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url: jdbc:mysql://82.157.76.162:3306/jeecg-boot2?characterEncoding=UTF-8&rewriteBatchedStatements=true&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password: wB4TL7Mp
driver-class-name: com.mysql.cj.jdbc.Driver