Browse Source

代码重构

master
管理员 2 years ago
parent
commit
8e3b56df6a
  1. 19
      nladmin-system/pom.xml
  2. 4
      nladmin-system/src/main/java/org/nl/AppRun.java
  3. 27
      nladmin-system/src/main/resources/config/application-dev.yml
  4. 25
      nladmin-system/src/main/resources/config/application-prod.yml
  5. 26
      nladmin-system/src/main/resources/config/application-test.yml
  6. 9
      nladmin-system/src/main/resources/config/businessTpye.txt

19
nladmin-system/pom.xml

@ -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>

4
nladmin-system/src/main/java/org/nl/AppRun.java

@ -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;

27
nladmin-system/src/main/resources/config/application-dev.yml

@ -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

25
nladmin-system/src/main/resources/config/application-prod.yml

@ -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

26
nladmin-system/src/main/resources/config/application-test.yml

@ -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

9
nladmin-system/src/main/resources/config/businessTpye.txt

@ -1,9 +0,0 @@
//项目协议类型说明
0:标准协议,荣力营口,杰牌,金力永磁
1:新锐
2:贤益
3:奇达
4:广钞厂
5:纽迪希亚
6:太钢
7:洁美
Loading…
Cancel
Save