Custom Spring config EnvironmentRepository not being picked up

烂漫一生 提交于 2020-01-03 05:03:34

问题


I'm trying to figure out why my custom Environment Repository (in an embedded mode Spring Config application i.e. no stand-along Config server) isn't being picked up.

The object is obviously being constructed (I hit a log print statement at this point) but none of the properties I inject into it (from a hashmap for this example) show up in an env actuator dump i.e. custom.prop.* . The findOne(...) isn't being invoked.

Dump at https://gist.github.com/balamuru/1047db7080a4da6f067dd7cfac86a2c2

resulting from http://localhost:8282/env

Code at https://github.com/balamuru/config-service-embedded

来源:https://stackoverflow.com/questions/48762915/custom-spring-config-environmentrepository-not-being-picked-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!