Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
be835dd6
Commit
be835dd6
authored
Dec 01, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加Nacos的naming-load-cache-at-start配置项
parent
5f0d2d36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
discovery-common-nacos/src/main/java/com/nepxion/discovery/common/nacos/configuration/NacosAutoConfiguration.java
+5
-0
discovery-common-nacos/src/main/java/com/nepxion/discovery/common/nacos/constant/NacosConstant.java
+1
-0
No files found.
discovery-common-nacos/src/main/java/com/nepxion/discovery/common/nacos/configuration/NacosAutoConfiguration.java
View file @
be835dd6
...
...
@@ -76,6 +76,11 @@ public class NacosAutoConfiguration {
properties
.
put
(
NacosConstant
.
ENCODE
,
encode
);
}
String
namingLoadCacheAtStart
=
environment
.
getProperty
(
NacosConstant
.
NACOS_PLUGIN_NAMING_LOAD_CACHE_AT_START
);
if
(
StringUtils
.
isNotEmpty
(
namingLoadCacheAtStart
))
{
properties
.
put
(
NacosConstant
.
NAMING_LOAD_CACHE_AT_START
,
namingLoadCacheAtStart
);
}
return
NacosFactory
.
createConfigService
(
properties
);
}
...
...
discovery-common-nacos/src/main/java/com/nepxion/discovery/common/nacos/constant/NacosConstant.java
View file @
be835dd6
...
...
@@ -21,6 +21,7 @@ public class NacosConstant extends PropertyKeyConst {
public
static
final
String
NACOS_PLUGIN_CONTEXT_PATH
=
"nacos.plugin.context-path"
;
public
static
final
String
NACOS_PLUGIN_ENDPOINT
=
"nacos.plugin.endpoint"
;
public
static
final
String
NACOS_PLUGIN_ENCODE
=
"nacos.plugin.encode"
;
public
static
final
String
NACOS_PLUGIN_NAMING_LOAD_CACHE_AT_START
=
"nacos.plugin.naming-load-cache-at-start"
;
public
static
final
String
NACOS_PLUGIN_TIMEOUT
=
"nacos.plugin.timout"
;
public
static
final
long
DEFAULT_TIMEOUT
=
30000
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment