Spring's relaxed binding (`cache-list` ↔ `cacheList` ↔ `cache_list` ↔ * `CACHE_LIST`) collapses on lowercase + dash/underscore removal. We compare * candidate keys to a reference in this canonical form.
(key: string)
| 525 | * `CACHE_LIST`) collapses on lowercase + dash/underscore removal. We compare |
| 526 | * candidate keys to a reference in this canonical form. */ |
| 527 | function canonicalConfigKey(key: string): string { |
| 528 | return key.toLowerCase().replace(/[-_]/g, ''); |
| 529 | } |
| 530 | |
| 531 | // Directory patterns |
| 532 | const SERVICE_DIRS = ['/service/', '/services/']; |