![](/img/trans.png)
[英]How to use WebMvcConfigurationSupport from own auto-configuration
[英]how create a custom Auto-Configuration in parent maven project with quarkus
請求說明:
我想在父 maven 項目中集成一些屬性(例如:quarkus.log.console.format、quarkus.smallrye-metrics.path),新項目只是擴展父 maven 項目可以自動配置該屬性並確保所有項目獲得相同的屬性。
簡單關系:
自動配置父項目(具有屬性:quarkus.smallrye-metrics.path=/myMetrics)
|———— A child Proejct (non-properties)
|———— B子項目(非產權)
使用http://${A project domain}/myMetrics
和http://${B project domain}/myMetrics
可以獲得指標。
試過:
quarkus.smallrye-metrics.path=/myMetrics
環境信息:
自 1.13 起,Quarkus 已支持此功能: https://github.com/quarkusio/quarkus/pull/15282
如果您無法升級,則可以使用microprofile-config.properties
來代替,其行為方式相同。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.