-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lixingzhi
committed
Sep 25, 2022
1 parent
2ddafc1
commit 9e3cc7c
Showing
2 changed files
with
128 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.power.doc.model; | ||
|
||
/** | ||
* @author xingzi | ||
* Date 2022/9/25 14:52 | ||
*/ | ||
public class SystemPlaceholders { | ||
private SystemPlaceholders(){ | ||
|
||
} | ||
public static final String PLACEHOLDER_PREFIX = "${"; | ||
|
||
/** Suffix for system property placeholders: "}". */ | ||
public static final String PLACEHOLDER_SUFFIX = "}"; | ||
|
||
/** Value separator for system property placeholders: ":". */ | ||
public static final String VALUE_SEPARATOR = ":"; | ||
|
||
public static final String SIMPLE_PREFIX = "{"; | ||
|
||
public static boolean hasSystemProperties(String url){ | ||
return url.startsWith(PLACEHOLDER_PREFIX) && url.endsWith(PLACEHOLDER_SUFFIX) && url.contains(VALUE_SEPARATOR); | ||
} | ||
|
||
public static String replaceSystemProperties(String url){ | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters