提交代码

dev-discount
胡锐 2 years ago
parent 42dc475fb4
commit 5397b66b1a
  1. 4
      hai-cweb/src/main/java/com/CWebApplication.java
  2. 22
      hai-cweb/src/main/resources/dev/application.yml

@ -1,5 +1,7 @@
package com;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import com.hai.common.utils.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
@ -13,6 +15,8 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
//@ComponentScan
@EnableTransactionManagement
@EnableScheduling
@EnableMethodCache(basePackages = "com.hai")
@EnableCreateCacheAnnotation
@ServletComponentScan
@MapperScan("com.hai.dao")
public class CWebApplication

@ -73,6 +73,28 @@ mybatis:
#开启MyBatis的二级缓存
cache-enabled: true
jetcache:
statIntervalMinutes: 15
areaInCacheName: false
local:
default:
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
type: redis
host: 139.159.177.244
port: 36379
password: HF123456.Redis
keyConvertor: fastjson
broadcastChannel: projectA
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
pagehelper:
helperDialect: mysql
reasonable: true

Loading…
Cancel
Save