Resource links for remote apps

Fixed by adding a special case that detects the
special path prefix '/home/vcap/app' and treats
resources in that path the same as classpath
resources.
This commit is contained in:
Kris De Volder
2018-08-17 12:44:32 -07:00
parent d1e960f3fa
commit 2c6dd39a33
5 changed files with 61 additions and 7 deletions

View File

@@ -213,13 +213,10 @@ public abstract class AbstractSpringBootApp implements SpringBootApp {
synchronized(this) {
if (cachedBeansModel == null || !md5.equals(cachedBeansModelMD5)) {
cachedBeansModel = LiveBeansModel.parse(gson.toJson(json));
cachedBeansModelMD5 = md5;
logger.debug("Got {} beans for {}", cachedBeansModel.getBeanNames().size(), this);
}
else {
} else {
logger.debug("Got {} beans for {} - from cache", cachedBeansModel.getBeanNames().size(), this);
}
}