删除批次查询缓存
This commit is contained in:
parent
4a25704e8f
commit
a5dc424f29
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue