- 浏览: 496591 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (200)
- java基础 (30)
- ajax (19)
- 乱写 (5)
- groovy (2)
- db (8)
- gwt (0)
- jee (2)
- 我关注的开源 (1)
- RIA AIR (1)
- spring (11)
- lucene (0)
- 工具 (10)
- 百科 (2)
- linux (6)
- android (40)
- 移动开发 (21)
- 代码片断 (15)
- tomcat (1)
- css (1)
- html5 (2)
- jquery (2)
- playframework (3)
- web (2)
- nio (3)
- design (1)
- nosql (3)
- 日志 (12)
- mysql (4)
- 图表 (1)
- python (3)
- ruby (1)
- git (0)
- hibernate (1)
- springboot (1)
- guava (1)
- mybatis (0)
- 工作问题 (3)
- php (1)
最新评论
-
linzm1990:
踩了很多坑啊。。。。
hibernate @Nofound 与@ManyToOne fetch lazy的问题 -
Ccccrrrrrr:
...
转: Spring boot 文件上传 -
rmzdb:
兄弟,你这个东西,在ie内核的浏览器,貌似不识别 文件名
工作问题:http下载文件,中文文件名在firefox下乱码问题 -
107x:
问题解决了,谢谢!
工作问题:http下载文件,中文文件名在firefox下乱码问题 -
klxqljq:
额鹅鹅鹅
android布局实现头尾固定, 中间多余内容可以滚动
spring给我们提供了很多的工具类, 应该在我们的日常工作中很好的利用起来. 它可以大大的减轻我们的平时编写代码的长度. 因我们只想用spring的工具类,
而不想把一个大大的spring工程给引入进来. 下面是我从spring3.0.5里抽取出来的工具类.
在最后给出我提取出来的spring代码打成的jar包
spring的里的resouce的概念, 在我们处理io时很有用. 具体信息请参考spring手册
内置的resouce类型
工具类
xml工具
其它工具集
和web相关的工具
而不想把一个大大的spring工程给引入进来. 下面是我从spring3.0.5里抽取出来的工具类.
在最后给出我提取出来的spring代码打成的jar包
spring的里的resouce的概念, 在我们处理io时很有用. 具体信息请参考spring手册
内置的resouce类型
- UrlResource
- ClassPathResource
- FileSystemResource
- ServletContextResource
- InputStreamResource
- ByteArrayResource
- EncodedResource 也就是Resource加上encoding, 可以认为是有编码的资源
- VfsResource (在jboss里经常用到, 相应还有 工具类 VfsUtils)
- org.springframework.util.xml.ResourceUtils 用于处理表达资源字符串前缀描述资源的工具. 如: "classpath:".
有 getURL, getFile, isFileURL, isJarURL, extractJarFileURL
工具类
- org.springframework.core.annotation.AnnotationUtils 处理注解
- org.springframework.core.io.support.PathMatchingResourcePatternResolver 用于处理 ant 匹配风格(com/*.jsp, com/**/*.jsp),找出所有的资源, 结合上面的resource的概念一起使用,对于遍历文件很有用. 具体请详细查看javadoc
- org.springframework.core.io.support.PropertiesLoaderUtils 加载Properties资源工具类,和Resource结合
- org.springframework.core.BridgeMethodResolver 桥接方法分析器. 关于桥接方法请参考: http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.12.4.5
- org.springframework.core.GenericTypeResolver 范型分析器, 在用于对范型方法, 参数分析.
- org.springframework.core.NestedExceptionUtils
xml工具
- org.springframework.util.xml.AbstractStaxContentHandler
- org.springframework.util.xml.AbstractStaxXMLReader
- org.springframework.util.xml.AbstractXMLReader
- org.springframework.util.xml.AbstractXMLStreamReader
- org.springframework.util.xml.DomUtils
- org.springframework.util.xml.SimpleNamespaceContext
- org.springframework.util.xml.SimpleSaxErrorHandler
- org.springframework.util.xml.SimpleTransformErrorListener
- org.springframework.util.xml.StaxUtils
- org.springframework.util.xml.TransformerUtils
其它工具集
- org.springframework.util.xml.AntPathMatcher ant风格的处理
- org.springframework.util.xml.AntPathStringMatcher
- org.springframework.util.xml.Assert 断言,在我们的参数判断时应该经常用
- org.springframework.util.xml.CachingMapDecorator
- org.springframework.util.xml.ClassUtils 用于Class的处理
- org.springframework.util.xml.CollectionUtils 用于处理集合的工具
- org.springframework.util.xml.CommonsLogWriter
- org.springframework.util.xml.CompositeIterator
- org.springframework.util.xml.ConcurrencyThrottleSupport
- org.springframework.util.xml.CustomizableThreadCreator
- org.springframework.util.xml.DefaultPropertiesPersister
- org.springframework.util.xml.DigestUtils 摘要处理, 这里有用于md5处理信息的
- org.springframework.util.xml.FileCopyUtils 文件的拷贝处理, 结合Resource的概念一起来处理, 真的是很方便
- org.springframework.util.xml.FileSystemUtils
- org.springframework.util.xml.LinkedCaseInsensitiveMap
- org.springframework.util.xml.LinkedMultiValueMap 一个key可以存放多个值的LinkedMap
- org.springframework.util.xml.Log4jConfigurer 一个log4j的启动加载指定配制文件的工具类
- org.springframework.util.xml.NumberUtils 处理数字的工具类, 有parseNumber 可以把字符串处理成我们指定的数字格式, 还支持format格式, convertNumberToTargetClass 可以实现Number类型的转化.
- org.springframework.util.xml.ObjectUtils 有很多处理null object的方法. 如nullSafeHashCode, nullSafeEquals, isArray, containsElement, addObjectToArray, 等有用的方法
- org.springframework.util.xml.PatternMatchUtils spring里用于处理简单的匹配. 如 Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles
- org.springframework.util.xml.PropertyPlaceholderHelper 用于处理占位符的替换
- org.springframework.util.xml.ReflectionUtils 反映常用工具方法. 有 findField, setField, getField, findMethod, invokeMethod等有用的方法
- org.springframework.util.xml.SerializationUtils 用于java的序列化与反序列化. serialize与deserialize方法
- org.springframework.util.xml.StopWatch 一个很好的用于记录执行时间的工具类, 且可以用于任务分阶段的测试时间. 最后支持一个很好看的打印格式. 这个类应该经常用
- org.springframework.util.xml.StringUtils
- org.springframework.util.xml.SystemPropertyUtils
- org.springframework.util.xml.TypeUtils 用于类型相容的判断. isAssignable
- org.springframework.util.xml.WeakReferenceMonitor 弱引用的监控
key值不区分大小写的LinkedMap
和web相关的工具
- org.springframework.web.util.CookieGenerator
- org.springframework.web.util.HtmlCharacterEntityDecoder
- org.springframework.web.util.HtmlCharacterEntityReferences
- org.springframework.web.util.HtmlUtils
- org.springframework.web.util.HttpUrlTemplate
- org.springframework.web.util.JavaScriptUtils
- org.springframework.web.util.Log4jConfigListener
- org.springframework.web.util.UriTemplate
- org.springframework.web.util.UriUtils 处理uri里特殊字符的编码
- org.springframework.web.util.WebUtils
- org.springframework.web.util.
这个类用于用字符串模板构建url, 它会自动处理url里的汉字及其它相关的编码. 在读取别人提供的url资源时, 应该经常用
String url = "http://localhost/myapp/{name}/{id}"
用listener的方式来配制log4j在web环境下的初始化
- subSpringUtil3.jar (265.3 KB)
- 下载次数: 191
发表评论
-
jackson知识点
2014-05-05 14:13 15751. jackson处理boolean类型的注意点 在使用j ... -
ChartDirectorvk如何测试文本的长度跟宽度
2012-11-30 15:53 1091在使用charDirector画图时, 要确定setPlotA ... -
消息系统部署、维护文档 (HornetQ)
2012-03-06 08:31 0hornetq中文参考文档 一、服务器部署 目前消息服务部 ... -
netty与tomcat等nio的比较(取自zhh2009在论坛里的发言)
2012-03-05 23:58 6840源讨论: http://www.iteye.com/topic ... -
LinkedHashmap的构建函数的第三个参数引发的问题
2012-03-02 17:47 3919注意: 这里只有构造函 ... -
展示字符集编码表示
2012-03-02 13:43 1173import java.nio.ByteBuffer; ... -
nginx 预压缩(gzip)静态文件
2012-01-31 10:01 1637转自: http://willko.iteye.com/blo ... -
Android ListView pull up to refresh 改造(转)
2011-11-03 09:25 2054转自: http://dengyin2000.iteye.co ... -
Android中dp和px之间进行转换
2011-11-03 09:02 2213在xml布局文件中,我们既可以设置px,也可以设置dp(或者d ... -
使用getIdentifier()获取资源Id
2011-10-31 12:15 8367使用getIdentifier()获取资源Id int i ... -
项目中用到的一个小工具类(字符过滤器)
2011-10-25 09:08 1020见: http://javatar.iteye.com/blo ... -
下载处理Servlet工具类
2011-10-25 09:06 935转自 http://javatar.iteye.com/blo ... -
Android缩略图类源代码
2011-08-17 22:00 1383Android 2.2开始新增的缩略图类ThumbnailUt ... -
ie和firefox使用自定义属性
2011-01-14 14:14 1278在javascript里怎么样访问标签的自定义属性. 如 ... -
简单实现${}模板替换功能
2010-12-01 15:32 2737/** * 简单实现${}模板功能 * 如${aa ...
相关推荐
包含spring 3.0.5的所有jar文件: org.springframework.aop-3.0.5.RELEASE.jar org.springframework.asm-3.0.5.RELEASE.jar org.springframework.aspects-3.0.5.RELEASE.jar org.springframework.beans-3.0.5.RELEASE...
org.springframework.asm-sources-3.0.5.release.jar
org.springframework.web-sources-3.0.5.release.jar
org.springframework.web.servlet-3.0.5.RELEASE.jar
org.springframework.instrument.tomcat-3.0.5.RELEASE可以让你更好的开发程序
org.springframework.aop-3.0.5.RELEASE.jar,org.springframework.asm-3.0.5.RELEASE.jar,org.springframework.aspects-3.0.5.RELEASE.jar,org.springframework.beans-3.0.5.RELEASE.jar,org.springframework....
org.springframework.aop-sources-3.0.5.release.jar
org.springframework.context.support-3.0.5.RELEASE.jar
org.springframework.context-sources-3.0.5.release.jar
mybatis3.0.3 and spring3.0.5jar
org.springframework.web.struts-3.0.5.RELEASE可以让你更好的进行开发
spring3.0.5的全部20个jar文件,常用的如下:org.springframework.asm-3.0.5.RELEASE.jar org.springframework.beans-3.0.5.RELEASE.jar org.springframework.context-3.0.5.RELEASE.jar org.springframework.core-...
Spring3.0.5帮助文档 Spring3.0.5帮助文档 Spring3.0.5帮助文档
jasypt-spring-boot-starter 3.0.5依赖的pom及jar
将spring2的开发包spring.jar替换为附件中压缩文件的所有jar包,既可以将spring2.0的应用升级到spring3.0.5
Spring3.0.5及其依赖包,包括: spring-framework-3.0.5.RELEASE.zip spring-framework-3.0.5.RELEASE-dependencies.rar
org.springframework.beans-sources-3.0.5.release.jar