原创 web.xml 常量獲取

<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2

原创 commons-email 輕鬆發送無亂碼郵件

/**  * 架包 com.springsource.javax.mail-1.4.0.jar commons-email-1.2.jar javaee.jar  * javaee.jar 中刪除掉 email 包下類容才能正常使用   

原创 spring-mvc 請求body 的處理方式 HttpMessageConverter

HttpMessageConverter 示例 StringHttpMessageConverter 從請求和響應讀取/編寫字符串。默認情況下,它支持媒體類型 text/* 並使用文本/無格式內容類型編寫。 FormHttpMessage

原创 jQuery獲取Select選擇的Text和 Value(轉)

  jQuery獲取Select選擇的Text和Value: 語法解釋: 1. $("#select_id").change(function(){//code...});   //爲Select添加事件

原创 java去掉html標籤

public static String getText(String htmlStr) {if(htmlStr==null || "".equals(htmlStr)) return "";      String textStr ="

原创 spring -mvc 將對象 已json返回時 忽略掉對象中的屬性註解方式

該註解使用在 類名,接口頭上 @JsonIgnoreProperties(value={"comid"}) //希望動態過濾掉的屬性   例 @JsonIgnoreProperties(value={"comid"})  publi