'Micronaut config properties to structure
I'm new in Micronaut and I would like to know if it is possible to generate from yml configuration like this:
MASTERDATA:
ERP:
ONE: 1
TWO: 2
FOUR: 4
EXPORT_STATUS:
NEW: 1
OPEN: 2
OTHER: 3
Something similar to this:
item.setErp(MASTERDATA.ERP.ONE);
item.setStatus(MASTERDATA.EXPORT_STATUS.NEW);
I'm searching for a solution similar to static variables access as old times.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
