{"id":1781,"date":"2019-10-29T13:32:23","date_gmt":"2019-10-29T05:32:23","guid":{"rendered":"https:\/\/www.xiaobo.li\/?p=1781"},"modified":"2019-10-29T15:56:41","modified_gmt":"2019-10-29T07:56:41","slug":"org-aooshi-j-%e6%9c%ac%e5%9c%b0%e5%8c%96%e4%be%9d%e8%b5%96%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/1781","title":{"rendered":"org.aooshi.j \u672c\u5730\u5316\u4f9d\u8d56\u65b9\u6cd5"},"content":{"rendered":"<h1>\u670d\u52a1\u4f9d\u8d56\u672c\u5730\u5f15\u7528\u65b9\u6cd5\u6587\u6863<\/h1>\n<h1>For java<\/h1>\n<p>&nbsp;<\/p>\n<h2><strong>\u5e93\u5217\u8868<\/strong><\/h2>\n<table>\n<tbody>\n<tr>\n<td width=\"226\">aooshi-j-util<\/td>\n<td width=\"406\">\u57fa\u7840\u5de5\u5177\u5e93<\/td>\n<\/tr>\n<tr>\n<td width=\"226\">aooshi-j-numberserver-client<\/td>\n<td width=\"406\">\u6570\u503c\u670d\u52a1\u5ba2\u6237\u7aef<\/td>\n<\/tr>\n<tr>\n<td width=\"226\"><\/td>\n<td width=\"406\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2><strong>\u6e90\u7801\u5e93\u5730\u5740<\/strong><\/h2>\n<table width=\"624\">\n<tbody>\n<tr>\n<td width=\"226\">aooshi-j-util<\/td>\n<td width=\"406\">https:\/\/github.com\/aooshi\/aooshi-j-util<\/td>\n<\/tr>\n<tr>\n<td width=\"226\">aooshi-j-numberserver-client<\/td>\n<td width=\"406\">https:\/\/github.com\/aooshi\/aooshi-j-numberserver-client<\/td>\n<\/tr>\n<tr>\n<td width=\"226\"><\/td>\n<td width=\"406\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2><strong>\u672c\u5730\u9879\u76ee\u6b65\u9aa4<\/strong><\/h2>\n<ol>\n<li>\u521b\u5efa\u672c\u5730\u4e3b\u76ee\u5f55 {you work directory}\/org.aooshi.j<\/li>\n<li>\u514b\u9686 aooshi-j-util \u81f3 \u672c\u5730\u76ee\u5f55\u4e2d,\u4f8b\uff1a\/{you work directory}\/org.aooshi.j\/aooshi-j-util<\/li>\n<li>\u514b\u9686aooshi-j-numberserver-client \u81f3 \u672c\u5730\u76ee\u5f55\u4e2d,\u4f8b\uff1a\/{you work directory}\/org.aooshi.j\/ aooshi-j-numberserver-client<\/li>\n<li>\u82e5\u9700\u8981\u5176\u5b83\uff0c\u5219\u6309\u4e0a\u8ff0\u4f8b\u5b50\uff0c\u514b\u9686\u66f4\u591a\u9879\u76ee<\/li>\n<li>idea \u5bfc\u5165\u9879\u6b62\uff0c\u9009\u62e9{you work directory}\/org.aooshi.j \u4e3b\u76ee\u5f55\uff08\u975e\u67d0\u4e00\u9879\u6b62\uff09\uff0c\u5728\u9009\u9879\u9875\u4e2d\u94a9\u9009\u201cSearch for projects recursively\u201d \u9009\u62e9\uff0c\u5373\u641c\u7d22\u5b50\u9879\u76ee<\/li>\n<li>\u9009\u4e2d\u5168\u90e8\u9879\u76ee\uff0c\u4e00\u6b21\u6027\u5bfc\u5165\u6240\u6709\u5b50\u9879<\/li>\n<li>\u901a\u8fc7 maven \u5de5\u5177\uff0c\u5bf9\u6bcf\u4e00\u4e2a\u5b57\u6bb5\u8fdb\u884c install \u5b89\u88c5<\/li>\n<li>\u7ed3\u675f<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><strong>\u9879\u76ee\u5f15\u7528<\/strong><\/h2>\n<ol>\n<li>xml<\/li>\n<li>\u5bf9\u9700\u8981\u7684\u9879\u76ee\u540d\u79f0\u8fdb\u884c\u5f15\u7528\uff0c\u5982 aooshi-j-util<\/li>\n<\/ol>\n<p>&lt;<strong>dependency<\/strong>&gt;<br \/>\n&lt;<strong>groupId<\/strong>&gt;org.aooshi.j&lt;\/<strong>groupId<\/strong>&gt;<br \/>\n&lt;<strong>artifactId<\/strong>&gt;aooshi-j-util&lt;\/<strong>artifactId<\/strong>&gt;<br \/>\n&lt;<strong>version<\/strong>&gt;1.0.0&lt;\/<strong>version<\/strong>&gt;<br \/>\n&lt;\/<strong>dependency<\/strong>&gt;<\/p>\n<p>&lt;<strong>dependency<\/strong>&gt;<br \/>\n&lt;<strong>groupId<\/strong>&gt;org.aooshi.j&lt;\/<strong>groupId<\/strong>&gt;<br \/>\n&lt;<strong>artifactId<\/strong>&gt; aooshi-j-numberserver-client &lt;\/<strong>artifactId<\/strong>&gt;<br \/>\n&lt;<strong>version<\/strong>&gt;1.0.0&lt;\/<strong>version<\/strong>&gt;<br \/>\n&lt;\/<strong>dependency<\/strong>&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4f7f\u7528\u65b9\u5f0f\u4e00\uff1a <\/strong><strong>\u5b9e\u4f8b\u5316\u65b9\u5f0f <\/strong><\/p>\n<p>NumberServerClient numberServerClient = <strong>new <\/strong>NumberServerClient();<br \/>\nnumberServerClient.setApiPass(<strong>\"\"<\/strong>);<br \/>\nnumberServerClient.setApiUser(<strong>\"\"<\/strong>);<br \/>\nnumberServerClient.setApiUrl(<strong>\"\"<\/strong>);<br \/>\nnumberServerClient.get(<strong>\"topic\"<\/strong>);<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4f7f\u7528\u65b9\u5f0f\u4e00\uff1a <\/strong><strong>\u6ce8\u89e3\u65b9\u5f0f <\/strong><\/p>\n<p><strong><br \/>\n<\/strong>\u521b\u5efa\u4e00\u4e2a\u672c\u5730\u7c7b\uff0c\u5e76\u7ee7\u627f<br \/>\n@Component<br \/>\n<strong>public class <\/strong>NumberUtil <strong>extends <\/strong>NumberServerClient{\u00a0\u00a0\u00a0}<\/p>\n<p>\u4f7f\u7528<br \/>\n@Autowired<br \/>\n<strong>private <\/strong>NumberUtil numberUtil;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>\u9879\u76ee\u914d\u7f6e<\/strong><\/h2>\n<p>\u683c\u5f0fapplication.properties<br \/>\nNumberServer.ApiUrl=http:\/\/192.168.199.85:8021\/<br \/>\nNumberServer.ApiUser=1<br \/>\nNumberServer.ApiPass=4pzPwZ45ajMMbhQpmwPJsZZc757SHHpG<em>\u00a0<\/em><\/p>\n<p>\u683c\u5f0fapplication.yml<br \/>\nNumberServer:<br \/>\nApiUrl: <a href=\"http:\/\/192.168.199.85:8021\/\">http:\/\/192.168.199.85:8021\/<\/a><br \/>\nApiUser: 1<br \/>\nApiPass: 4pzPwZ45ajMMbhQpmwPJsZZc757SHHpG<\/p>\n<p>\u914d\u7f6e\u4e2d\u7684\u5730\u5740\uff0c\u7528\u6237\uff0c\u5bc6\u7801 \u5747\u4e3a\u4f60\u7684\u5e94\u7528\u6240\u5206\u914d\u7684\u914d\u7f6e<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u4f9d\u8d56\u672c\u5730\u5f15\u7528\u65b9\u6cd5\u6587\u6863 For java &nbsp; \u5e93\u5217\u8868 aooshi- &hellip; <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/1781\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297],"tags":[],"class_list":["post-1781","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/1781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=1781"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/1781\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}