spring now work with std function