SpringVersion.getVersion() exposes the raw implementation version field from the jar manifest. Since this may have additional components after the patch version but some callers (such as Thymeleaf) do not expect that, let's restrict it to a "major.minor.patch" format for the purpose of such runtime version checks.
SpringVersion.getVersion()exposes the raw implementation version field from the jar manifest. Since this may have additional components after the patch version but some callers (such as Thymeleaf) do not expect that, let's restrict it to a "major.minor.patch" format for the purpose of such runtime version checks.