ClassTypeInformation在1.1.0版中引入了该方法:
public static <S> TypeInformation<S> from(Class<S> type) {确保您的spring-data-commons版本> = 1.1.0

ClassTypeInformation在1.1.0版中引入了该方法:
public static <S> TypeInformation<S> from(Class<S> type) {确保您的spring-data-commons版本> = 1.1.0