mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
Spring Boot already provides equivalent converters, and DataSize itself already exposes parsing support via DataSize.parse(...). This commit makes that conversion available through Spring Framework's default conversion service. - new StringToDataSizeConverter - new NumberToDataSizeConverter - both converters are registered with the DefaultConversionService - new tests for string, number, empty, and invalid inputs This intentionally does not move Spring Boot's @DataSizeUnit support into Spring Framework. See gh-28910 Closes gh-36830 Signed-off-by: YeongJae Min <whereismysejong@naver.com>