Hi Alexey! Let's start with the obvious: is your MyApplication bean managed by the container? Or did it get created via new()? And what scenario are you using? WAR or EAR deployment?
LieGrue, strub > Am 29.10.2019 um 13:26 schrieb Makarov Alexey <[email protected]>: > > Hello! > I use Wildfly 18, maven and Delta Spike. When I try to resolve property > config by programmatic lookup, property value is received successful: > > Integer v = ConfigResolver.resolve("myproperty") > .as(Integer.class) > .withDefault(12345) > .getValue(); > > But if I try to inject this property, this value is always null: > > @ApplicationScoped > public class MyApplication { > > @Inject > @ConfigProperty(name = "myproperty", defaultValue = "12345") > private String myProperty; > > ... > } > > How I can fix this problem? > Thanks
