作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
是否有某种方法可以获取已部署的 mule 应用程序的基本 mule 应用程序名称?
到目前为止我发现的仅有的两个选项是:
muleContext.getConfiguration().getId() //which gives me some not so humanly-readable id of some sort.
和
muleEvent.getFlowConstruct().getName() //gives me that flow name from where this was called.
每个应用程序在部署时都在自己的应用程序目录中,是否不可能从 muleContext 中获取这个或其他类似的专有名称?
亲切的问候
最佳答案
检索应用程序名称的最简单方法是使用 ${app.name}
spring 占位符将其注入(inject)到您的组件中
关于mule - 如何获取 mule 应用程序名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18314683/
我是一名优秀的程序员,十分优秀!