We can see that the mapValues method has been marked as obsolete in the latest version of scala 2.13.1
And the return value of the method also changed from Map to MapView
Please refer to this article for detailed pit tread records: https://blog.csdn.net/bluishglc/article/details/80156218