Skip to content

Commit

Permalink
modify classloader source
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Mar 20, 2024
1 parent 3596b3a commit 97c7719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,16 @@ protected String getProp(String key) {
} else {
try {
ResourceBundle bundle = ResourceBundle.getBundle(bundlePath);
final ClassLoader classLoader = Config.class.getClassLoader();
return new P() {
@Override
protected InputStream getOriginSource() {

InputStream source = Config.class.getResourceAsStream(bundlePathClasspath);
InputStream source = classLoader.getResourceAsStream(bundlePathClasspath);
if (source == null) {
throw new NullPointerException("bundlePathClasspath:"
+ bundlePathClasspath + " relevant inputStream can not be null,classpath root:"
+ Config.class.getResource("/"));
+ classLoader.getResource("/"));
}
return source;
}
Expand Down
2 changes: 1 addition & 1 deletion tis-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spec:
volumeMounts:
- name: tis-console-pvc
mountPath: "/opt/data"
image: registry.cn-hangzhou.aliyuncs.com/tis/tis-console:4.0.0
image: registry.cn-hangzhou.aliyuncs.com/tis/tis-console:4.0.1
ports:
- name: tis-8080
containerPort: 8080
Expand Down

0 comments on commit 97c7719

Please sign in to comment.