{"id":5474,"date":"2024-09-13T16:01:01","date_gmt":"2024-09-13T08:01:01","guid":{"rendered":""},"modified":"2024-09-13T16:01:01","modified_gmt":"2024-09-13T08:01:01","slug":"Hutool Java\u5f00\u53d1\u5de5\u5177\u5305","status":"publish","type":"post","link":"https:\/\/mushiming.com\/5474.html","title":{"rendered":"Hutool Java\u5f00\u53d1\u5de5\u5177\u5305"},"content":{"rendered":"
Hutool\u662f\u4e00\u4e2a\u5f00\u6e90java\u57fa\u7840\u5de5\u5177\u7c7b\u3002 Hutool\u662f\u4e00\u4e2aJava\u5de5\u5177\u5305\u7c7b\u5e93\uff0c\u5bf9\u6587\u4ef6\u3001\u6d41\u3001\u52a0\u5bc6\u89e3\u5bc6\u3001\u8f6c\u7801\u3001\u6b63\u5219\u3001\u7ebf\u7a0b\u3001 XML\u7b49JDK\u65b9\u6cd5\u8fdb\u884c\u5c01\u88c5\uff0c\u7ec4\u6210\u5404\u79cdUtil\u5de5\u5177\u7c7b\u3002\u4e8e2014\u5e744\u6708\u7531\u5185\u8499\u53e4\u5f00\u53d1\u8005\u8def\u5c0f\u78ca\u521b\u5efa.<\/p>\n
\u51cf\u5c11\u4ee3\u7801\u7684\u91cd\u590d\u7f16\u5199<\/p>\n
\u5927\u90e8\u5206\u57fa\u7840\u9700\u6c42\u3001\u5de5\u5177\u7c7b,hutool\u5df2\u7ecf\u5b9e\u73b0,\u4e0d\u9700\u8981\u5f00\u53d1\u8005\u518d\u91cd\u590d\u7f16\u5199\u4ee3\u7801\u548c\u6d4b\u8bd5,\u8282\u7ea6\u4e86\u4eba\u529b\u548c\u65f6\u95f4\u6210\u672c.<\/p>\n
\u6807\u51c6\u5316<\/p>\n
\u540c\u4e00\u4e2a\u65b9\u6cd5,\u4e0d\u540c\u7684\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u7528\u4e0d\u540c\u7684\u540d\u79f0.\u4f7f\u7528\u540c\u4e00\u5957api,\u6709\u5229\u4e8e\u4ee3\u7801\u98ce\u683c\u7684\u7edf\u4e00\u548c\u540e\u671f\u7ef4\u62a4.<\/p>\n
\u7a33\u5b9a\u6027<\/p>\n
Hutool\u5b9e\u73b0\u4e86\u975e\u5e38\u4e30\u5bcc\u7684\u5e38\u7528\u57fa\u7840\u529f\u80fd,\u8fd9\u4e9b\u529f\u80fd\u90fd\u7ecf\u8fc7\u4e86\u5f88\u591a\u5f00\u53d1\u8005\u957f\u671f\u4f7f\u7528,\u5177\u6709\u5f88\u9ad8\u7684\u7a33\u5b9a\u6027.<\/p>\n
\u5176\u5b9e\u4f60\u4f1a\u53d1\u73b0Hutool\u5c31\u662f\u4e00\u4e2a\u4ece\u7ec6\u8282\u6e17\u900f\u66ff\u6362\u7684\u5de5\u5177\uff0c\u5b83\u4f5c\u4e3a\u96f6\u4ef6\u4e00\u4e2a\u4e00\u4e2a\u7684\u66ff \u6362\u9879\u76ee\u4e2d\u7684\u5197\u4f59\u4ee3\u7801\uff0c\u6700\u7ec8\u4f7f\u9879\u76ee\u53d8\u9ad8\u6548\u3002\u800c\u4e00\u65e6\u66ff\u6362\u5931\u8d25\uff0c\u8fd9\u4e2a\u7ec6\u8282\u9000\u56de\u5c31\u597d\u4e86\u3002<\/span><\/p>\n Wiki<\/em><\/strong><\/span> :<\/strong><\/span>https:\/\/hutool.cn\/docs\/<\/p>\n <\/p>\n \u5b98\u7f51 \uff1a http:\/\/www.hutool.cn\/<\/p>\n Github \uff1ahttps:\/\/github.com\/looly\/hutool<\/p>\n Gitee\uff1ahttps:\/\/gitee.com\/loolly\/hutool <\/p>\n *\u652f\u6301Maven\u4e2d\u592e\u4ed3\u5e93\u4e0b\u8f7d \u652f\u6301Maven\u3001Gradel<\/p>\n <\/p>\n <\/p>\n String\u5224\u65ad\u7a7a<\/em><\/strong><\/p>\n <\/p>\n \u5b57\u7b26\u4e32\u4e0e\u6570\u7ec4\u7684\u5206\u5272\u5408\u5e76<\/em><\/strong><\/p>\n <\/p>\n \u65e5\u671f\u683c\u5f0f\u5316\u4e0e\u89e3\u6790<\/em><\/strong><\/p>\n <\/p>\n \u96c6\u5408\u64cd\u4f5c<\/em><\/strong><\/p>\n \u4e07\u80fd\u8f6c\u6362<\/strong><\/em><\/p>\n <\/p>\n \u6458\u8981\u8ba1\u7b97\u4e0eBase64<\/em><\/strong><\/p>\n <\/p>\n <\/p>\n JSON\u64cd\u4f5c<\/em><\/strong><\/p>\n <\/p>\n \u6587\u4ef6\u8bfb\u5199<\/em><\/strong><\/p>\n \u66f4\u591a<\/em><\/strong><\/p>\n <\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":"Hutool Java\u5f00\u53d1\u5de5\u5177\u5305\u76ee\u5f55\uff1aHutool\u662f\u4ec0\u4e48\uff1f \u4e3a\u4ec0\u4e48\u4f7f\u7528Hutool \u6838\u5fc3\u6a21\u5757 \u4f7f\u7528\uff1fHutool\u662f\u4ec0\u4e48Hutool\u662f\u4e00\u4e2a\u5f00\u6e90java\u57fa\u7840\u5de5\u5177\u7c7b","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5474"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5474"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5474\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u6838\u5fc3\u6a21\u5757<\/h4>\n
\u4f7f\u7528<\/h4>\n
* StrUtil.isEmpty \u5224\u65ad\u662f\u5426\u4e3a\u7a7a(\u5305\u542bnull\u548c\u7a7a\u5b57\u7b26\u4e32) * StrUtil.isBlank \u5224\u65ad\u662f\u5426\u4e3a\u7a7a\u767d(\u5305\u542bnull\u3001\u7a7a\u5b57\u7b26\u4e32\u548c\u7a7a\u767d\u5b57\u7b26) * StrUtil.isNotEmpty\u5224\u65ad\u4e0d\u4e3a\u7a7a * StrUtil.isNotBlank\u5224\u65ad\u4e0d\u4e3a\u7a7a\u767d * StrUtil.removePrefix \u5b57\u7b26\u4e32\u53bb\u9664\u6307\u5b9a\u5b57\u7b26\u4e32\u5f00\u59cb\u7684\u5b57\u7b26 * StrUtil.removeSuffix \u5b57\u7b26\u4e32\u53bb\u9664\u6307\u5b9a\u5b57\u7b26\u4e32\u7ed3\u675f\u7684\u5b57\u7b26 <\/code><\/pre>\n
* StrUtil.splitTrim \u5b57\u7b26\u4e32\u6839\u636e\u5206\u5272\u5b57\u7b26\u8f6c\u4e3a\u6570\u7ec4 * StrUtil.join \u5c06\u6570\u7ec4\u7528\u5206\u9694\u5b57\u7b26\u4e32\u5408\u5e76\u4e3a\u5b57\u7b26\u4e32<\/code><\/pre>\n
* DateUtil.format\u65e5\u671f\u683c\u5f0f\u5316 * DateUtil.parse\u65e5\u671f\u89e3\u6790<\/code><\/pre>\n
* CollUtil.isEmpty \u5224\u65ad\u4e3a\u7a7a(null\u6216\u7a7a\u96c6) * CollUtil.distinct \u96c6\u5408\u53bb\u91cd * CollUtil. removeNull \u96c6\u5408\u53bb\u7a7a * CollUtil.union \u5e76\u96c6 * CollUtil.disjunction \u4ea4\u96c6<\/code><\/pre>\n
* Convert.toInt \u8f6c\u4e3a\u6574\u6570 * Convert.toLong \u8f6c\u4e3a\u957f\u6574\u6570<\/code><\/pre>\n
* SecureUtil.md5 \u8ba1\u7b97Md5\u6458\u8981 * SecureUtil.sha1 \u8ba1\u7b97SHA1\u6458\u8981 * Base64.encode Base64\u5b57\u7b26\u4e32\u52a0\u5bc6 * Base64.decodeStr Base64\u5b57\u7b26\u4e32\u89e3\u5bc6<\/code><\/pre>\n
* JSONUtil.toBean JSON\u89e3\u6790\u4e3a\u5bf9\u8c61 * JSONUtil.parseObj JSON\u89e3\u6790\u4e3aJSONObject * JSONUtil.formatJsonStr JSON\u683c\u5f0f\u5316 <\/code><\/pre>\n
* FileUtil.readBytes \u6309\u5b57\u8282\u8bfb * FileUtil.readLines \u6309\u884c\u8bfb * FileUtil.readString \u5168\u90e8\u8bfb * FileUtil.writeBytes \u6309\u5b57\u8282\u5199 * FileUtil.writeLines \u6309\u884c\u5199 * FileUtil.writeString \u5168\u90e8\u5199 <\/code><\/pre>\n
IdcardUtil.isValidCard \u8eab\u4efd\u8bc1\u6821\u9a8c Setting\u914d\u7f6e\u6587\u4ef6\u8bfb\u53d6 SqlRunner\u6570\u636e\u5e93\u64cd\u4f5c\u5de5\u5177\u7c7b NetUtil.getLocalhostStr()\u83b7\u53d6\u672c\u673aip\u5730\u5740 NumberUtil.round \u56db\u820d\u4e94\u5165 RandomUtil.randomInt \u83b7\u53d6\u968f\u673a\u6570 RuntimeUtil.execForStr \u6267\u884c\u547d\u4ee4\u884c CaptchaUtil.createLineCaptcha \u9a8c\u8bc1\u7801\u5de5\u5177\u7c7b ExcelReader ExcelWriter Excel \u8bfb\u5199 CronUtil.start() \u5b9a\u65f6\u4efb\u52a1<\/code><\/pre>\n
\n