因此,你应该明确对象不为null 的时候使用of()。 如果对象即可能是null 也可能是非null,你就应该使用ofNullable() 方法:. User user = null; ...
確定! 回上一頁