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)
| 499 | * `CACHE_LIST`) collapses on lowercase + dash/underscore removal. We compare |
| 500 | * candidate keys to a reference in this canonical form. */ |
| 501 | function canonicalConfigKey(key: string): string { |
| 502 | return key.toLowerCase().replace(/[-_]/g, ''); |
| 503 | } |
| 504 | |
| 505 | // Directory patterns |
| 506 | const SERVICE_DIRS = ['/service/', '/services/']; |