问题
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