Skip to content

Commit

Permalink
rename configuration keys (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
binyu1005 authored Oct 11, 2023
1 parent 46dbf41 commit 4b73fbd
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@Configuration
public class MongodbConfiguration {

@Value("${arex.report.mongo.uri}")
@Value("${arex.mongo.uri}")
private String mongoUrl;

private static final String APP_ID = "appId";
Expand Down
2 changes: 1 addition & 1 deletion arex-web-api/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# test
arex.report.mongo.uri=mongodb://arex:iLoveArex@ip:27017/arex_storage_db
arex.mongo.uri=mongodb://arex:iLoveArex@ip:27017/arex_storage_db
arex.storage.service.url=http://arex-storage-service:8080
arex.schedule.service.url=http://arex-schedule-service:8080
arex.redis.uri=redis://10.5.153.1:6379/
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# prod
arex.report.mongo.uri=mongodb://arex:iLoveArex@mongodb:27017/arex_storage_db
arex.mongo.uri=mongodb://arex:iLoveArex@mongodb:27017/arex_storage_db
arex.storage.service.url=http://arex-storage-service:8080
arex.schedule.service.url=http://arex-schedule-service:8080
arex.redis.uri=redis://redis:6379/
4 changes: 2 additions & 2 deletions arex-web-api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ arex.config.default.schedule.targetEnv=
arex.email.domain=http://arextest.com:8081
arex.interceptor.patterns=
# arex report setting
arex.report.case.inherited=true
arex.api.case.inherited=true
# redis leaseTime, unit:(second)
arex.web.api.redis.lease-time=30
arex.api.redis.lease-time=30
#call storage
arex.storage.countRecord.url=${arex.storage.service.url}/api/storage/replay/query/countByRange
arex.storage.listRecord.url=${arex.storage.service.url}/api/storage/replay/query/replayCase
Expand Down
2 changes: 1 addition & 1 deletion arex-web-api/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</RollingFile>
<NoSql name="Mongo4">
<ArexMongoDb4 capped="true" collectionSize="104857600"
connection="${sys:arex.report.mongo.uri}"
connection="${sys:arex.mongo.uri}"
/>
</NoSql>
</Appenders>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class FileSystemService {
private static final String AREX_REPLAY_PREPARE_DEPENDENCY = "arex_replay_prepare_dependency";
private static final String PINNED_PRE_FIX = "pinned_";

@Value("${arex.report.case.inherited}")
@Value("${arex.api.case.inherited}")
private String arexCaseInherited;

@Resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class FSTreeRepositoryImpl implements FSTreeRepository {
private static final String USERNAME = "userName";
private static final String ROOTS = "roots";

@Value("${arex.web.api.redis.lease-time}")
@Value("${arex.api.redis.lease-time}")
private long redisLeaseTime;
@Resource
private MongoTemplate mongoTemplate;
Expand Down

0 comments on commit 4b73fbd

Please sign in to comment.