![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
Fly_9k
路漫漫其修远兮
展开
-
获取web客户端的IP
public static String getIp(final HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) ...转载 2019-01-16 14:57:57 · 424 阅读 · 0 评论 -
JSON字符串转javabean,报net.sf.ezmorph.bean.MorphDynaBean cannot be cast to.....
在json字符串转java bean时,一般的对象,可以直接转,如:一个学生类,属性有姓名、年龄等Java代码 public class Student implements java.io.Serializable{ /** */ private static final long serialVersionUID = -19439...转载 2019-01-16 14:53:27 · 5286 阅读 · 3 评论 -
遇到 com.lowagie.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.
在利用iText.jar和iTextAsian.jar生成pdf文件时有时遇到了Exception in thread "main" com.lowagie.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.at com.lowagie.text.pdf.BaseFont.cr...原创 2019-01-16 14:52:57 · 6671 阅读 · 1 评论