Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 480f1359
authored
Jan 08, 2024
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
java配置添加
1 parent
8465d5cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/sop/ConfigUtils.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/ConfigUtils.java
View file @
480f135
...
@@ -15,7 +15,7 @@ public class ConfigUtils {
...
@@ -15,7 +15,7 @@ public class ConfigUtils {
private
static
final
String
CONFIG_FILE_PATTERN
=
"config-%s.properties"
;
private
static
final
String
CONFIG_FILE_PATTERN
=
"config-%s.properties"
;
static
{
static
{
String
environment
=
System
.
get
env
(
"ENVIRONMENT"
);
// 或者 System.getProperty("ENVIRONMENT")
String
environment
=
System
.
get
Property
(
"ENVIRONMENT"
);
// 或者 System.getProperty("ENVIRONMENT")
String
configFile
=
String
.
format
(
CONFIG_FILE_PATTERN
,
environment
!=
null
?
environment
:
"dev"
);
String
configFile
=
String
.
format
(
CONFIG_FILE_PATTERN
,
environment
!=
null
?
environment
:
"dev"
);
try
(
InputStream
input
=
ConfigUtils
.
class
.
getClassLoader
().
getResourceAsStream
(
configFile
))
{
try
(
InputStream
input
=
ConfigUtils
.
class
.
getClassLoader
().
getResourceAsStream
(
configFile
))
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment