java後臺實體類設置默認值

private String orderPrice;//定義類的屬性 /* * get set方法 * String.trim() 返回字符串的副本,忽略前導空白和尾部空白。 */ public String getOrderPrice() { if("".equals(orderPrice)||orderPrice==null){
相關文章
相關標籤/搜索