v4.2.4 (2021-03-17)
<dependency>
<groupId>net.hasor</groupId>
<artifactId>hasor-all</artifactId>
<version>4.2.4</version>
</dependency>
Scope
- Core configuration loading, namespace precedence, and configuration node conversion
Changes
- Added
- Add
TreeNode.toMapData()to convert configuration trees to Maps while retaining child nodes and multi-valued settings.
- Add
- Fixed
- Fix configuration trees treating a namespace as a node name, restoring correct precedence for the main namespace.
- Improved
- Remove the unused namespace field from
ConfigSourceto simplify configuration source definitions.
- Remove the unused namespace field from
Upgrade notes
- Extensions that construct
ConfigSourcedirectly must remove the namespace argument and useConfigSource(StreamType, URL)orConfigSource(StreamType, Reader).getNamespace()is also removed. - When overriding settings across multiple namespaces, verify the resulting values after this fix.