单元测试优化,不再必须依赖 j2cache.proerties 属性文件,系统默认会设定一些默认值。

This commit is contained in:
thinkgem
2019-08-02 18:12:46 +08:00
parent 7b599405fa
commit 77155af474
4 changed files with 7 additions and 15 deletions

View File

@@ -1,12 +1,12 @@
# 产品或项目名称、版本、版权年份
# 产品或项目名称、软件开发公司名称
productName: JeeSite Demo
companyName: ThinkGem
# 产品版本、版权年份
productVersion: V4.1
copyrightYear: 2018
# 软件提供商公司或个人名称
companyName: ThinkGem
# 数据库连接
jdbc:
@@ -20,4 +20,4 @@ jdbc:
# 日志配置
logging:
config: classpath:logback.xml
config: classpath:logback-test.xml

View File

@@ -1,8 +0,0 @@
#J2Cache configuration
j2cache.broadcast = none
j2cache.L1.provider_class = caffeine
j2cache.L2.provider_class = none
caffeine.region.default = 10000, 1h

View File

@@ -3,7 +3,7 @@
<!-- Framework level setting -->
<include resource="config/logger-core.xml"/>
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<!-- Console log output -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>

View File

@@ -3,7 +3,7 @@
<!-- Framework level setting -->
<include resource="config/logger-core.xml"/>
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<!-- Console log output -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>