代码重构
This commit is contained in:
@@ -25,25 +25,6 @@
|
|||||||
<version>6.6</version>
|
<version>6.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.mongodb</groupId>
|
|
||||||
<artifactId>mongo-java-driver</artifactId>
|
|
||||||
<version>3.4.2</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- JetCache Redis 依赖-->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.alicp.jetcache</groupId>
|
|
||||||
<artifactId>jetcache-starter-redis</artifactId>
|
|
||||||
<version>2.5.14</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.alicp.jetcache</groupId>
|
|
||||||
<artifactId>jetcache-starter-redis-lettuce</artifactId>
|
|
||||||
<version>2.5.14</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package org.nl;
|
package org.nl;
|
||||||
|
|
||||||
import com.alicp.jetcache.Cache;
|
import com.alicp.jetcache.Cache;
|
||||||
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
|
|
||||||
import com.alicp.jetcache.anno.config.EnableMethodCache;
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import org.nl.annotation.rest.AnonymousGetMapping;
|
import org.nl.annotation.rest.AnonymousGetMapping;
|
||||||
import org.nl.utils.SpringContextHolder;
|
import org.nl.utils.SpringContextHolder;
|
||||||
@@ -35,8 +33,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@EnableTransactionManagement
|
@EnableTransactionManagement
|
||||||
@EnableJpaAuditing(auditorAwareRef = "auditorAware")
|
@EnableJpaAuditing(auditorAwareRef = "auditorAware")
|
||||||
|
|
||||||
@EnableMethodCache(basePackages = "org.nl")
|
|
||||||
@EnableCreateCacheAnnotation
|
|
||||||
public class AppRun implements CommandLineRunner {
|
public class AppRun implements CommandLineRunner {
|
||||||
|
|
||||||
private Cache<String, Object> userCache;
|
private Cache<String, Object> userCache;
|
||||||
|
|||||||
@@ -137,30 +137,3 @@ file:
|
|||||||
# 文件大小 /M
|
# 文件大小 /M
|
||||||
maxSize: 100
|
maxSize: 100
|
||||||
avatarMaxSize: 5
|
avatarMaxSize: 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jetcache:
|
|
||||||
defaultCacheType: LOCAL
|
|
||||||
statIntervalMinutes: 15
|
|
||||||
areaInCacheName: false
|
|
||||||
hiddenPackages: com.yb
|
|
||||||
local:
|
|
||||||
default:
|
|
||||||
type: caffeine
|
|
||||||
limit: 100
|
|
||||||
keyConvertor: fastjson
|
|
||||||
expireAfterWriteInMillis: 60000
|
|
||||||
remote:
|
|
||||||
default:
|
|
||||||
type: redis.lettuce
|
|
||||||
keyConvertor: fastjson
|
|
||||||
valueEncoder: kryo
|
|
||||||
valueDecoder: kryo
|
|
||||||
poolConfig:
|
|
||||||
minIdle: 5
|
|
||||||
maxIdle: 200
|
|
||||||
maxTotal: 1000
|
|
||||||
uri:
|
|
||||||
- redis://127.0.0.1:6379
|
|
||||||
|
|
||||||
|
|||||||
@@ -139,28 +139,3 @@ file:
|
|||||||
avatarMaxSize: 5
|
avatarMaxSize: 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jetcache:
|
|
||||||
defaultCacheType: LOCAL
|
|
||||||
statIntervalMinutes: 15
|
|
||||||
areaInCacheName: false
|
|
||||||
hiddenPackages: com.yb
|
|
||||||
local:
|
|
||||||
default:
|
|
||||||
type: caffeine
|
|
||||||
limit: 100
|
|
||||||
keyConvertor: fastjson
|
|
||||||
expireAfterWriteInMillis: 60000
|
|
||||||
remote:
|
|
||||||
default:
|
|
||||||
type: redis.lettuce
|
|
||||||
keyConvertor: fastjson
|
|
||||||
valueEncoder: kryo
|
|
||||||
valueDecoder: kryo
|
|
||||||
poolConfig:
|
|
||||||
minIdle: 5
|
|
||||||
maxIdle: 200
|
|
||||||
maxTotal: 1000
|
|
||||||
uri:
|
|
||||||
- redis://127.0.0.1:6379
|
|
||||||
|
|
||||||
|
|||||||
@@ -136,29 +136,3 @@ file:
|
|||||||
maxSize: 100
|
maxSize: 100
|
||||||
avatarMaxSize: 5
|
avatarMaxSize: 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jetcache:
|
|
||||||
defaultCacheType: LOCAL
|
|
||||||
statIntervalMinutes: 15
|
|
||||||
areaInCacheName: false
|
|
||||||
hiddenPackages: com.yb
|
|
||||||
local:
|
|
||||||
default:
|
|
||||||
type: caffeine
|
|
||||||
limit: 100
|
|
||||||
keyConvertor: fastjson
|
|
||||||
expireAfterWriteInMillis: 60000
|
|
||||||
remote:
|
|
||||||
default:
|
|
||||||
type: redis.lettuce
|
|
||||||
keyConvertor: fastjson
|
|
||||||
valueEncoder: kryo
|
|
||||||
valueDecoder: kryo
|
|
||||||
poolConfig:
|
|
||||||
minIdle: 5
|
|
||||||
maxIdle: 200
|
|
||||||
maxTotal: 1000
|
|
||||||
uri:
|
|
||||||
- redis://47.97.157.227:6379
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
//项目协议类型说明
|
|
||||||
0:标准协议,荣力营口,杰牌,金力永磁
|
|
||||||
1:新锐
|
|
||||||
2:贤益
|
|
||||||
3:奇达
|
|
||||||
4:广钞厂
|
|
||||||
5:纽迪希亚
|
|
||||||
6:太钢
|
|
||||||
7:洁美
|
|
||||||
Reference in New Issue
Block a user