返回值类型使用 需要使用包装类,否则会有如下 org.springframework.dao.TypeMismatchDataAccessException: Type mismatch affecting row number 0 and column type 'INT': Value [9] is of type [java.lang.Integer] and cannot be converted to required type [int]