|
@@ -12,14 +12,15 @@ import com.thinkgem.jeesite.common.utils.Encodes;
|
|
|
import com.thinkgem.jeesite.common.utils.StringUtils;
|
|
|
import com.thinkgem.jeesite.test.service.InfomationService;
|
|
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
public class InfoTest extends SpringTransactionalContextTests {
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private InfomationService infomationService;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private InfoService infoService;
|
|
|
|
|
@@ -28,6 +29,14 @@ public class InfoTest extends SpringTransactionalContextTests {
|
|
|
|
|
|
@Test
|
|
|
public void test(){
|
|
|
+ String str = "/pages/goods/goods-classify?classType=2&id=1038&title=%E7%8E%BB%E5%B0%BF%E9%85%B8%EF%BC%88%E5%B0%8F%E5%88%86%E5%AD%90%EF%BC%89";
|
|
|
+ String decode="";
|
|
|
+ try {
|
|
|
+ decode = java.net.URLDecoder.decode(str,"UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ System.out.println(decode);
|
|
|
// Info info = infoService.get("228");
|
|
|
// String infoContent=Encodes.unescapeHtml(info.getInfoContent());
|
|
|
// //infoContent=Encodes.urlDecode(infoContent);
|
|
@@ -50,25 +59,25 @@ public class InfoTest extends SpringTransactionalContextTests {
|
|
|
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|