![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码片断
como
这个作者很懒,什么都没留下…
展开
-
一个不错的log4j配置
java 代码 log4j.threshold = ALL log4j.rootLogger = ALL # log4j.category.org.springframework debug,FrameWorkSpring log4j.category.org.hibernate debu...2007-04-09 17:53:00 · 103 阅读 · 0 评论 -
判断泛型参数类型代码片断
java 代码 Class<T> entityClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];2007-04-25 22:48:55 · 556 阅读 · 0 评论 -
Spring MVC的@ResponseBody返回JSON串
<bean class ="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" > <property name="messageConverters"> <list> <ref bean="mappingJacksonHttp...原创 2010-08-16 01:05:36 · 120 阅读 · 0 评论