{"id":58627,"date":"2023-10-23T10:18:45","date_gmt":"2023-10-23T02:18:45","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=58627"},"modified":"2023-10-23T10:18:45","modified_gmt":"2023-10-23T02:18:45","slug":"syidrjbhzmsy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/58627.html","title":{"rendered":"\u4f7f\u7528IDEA\u5bfc\u5165Jar\u5305\u540e\u600e\u4e48\u4f7f\u7528"},"content":{"rendered":"

  \u5728\u5f00\u53d1Java\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0cJar\u5305\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u8f6f\u4ef6\u5305\u683c\u5f0f\u3002\u5b83\u4eec\u5305\u542b\u4e86\u4e00\u7ec4\u53ef\u4ee5\u88abJava\u865a\u62df\u673a\u6267\u884c\u7684\u5b57\u8282\u7801\uff0c\u53ef\u4ee5\u88ab\u7528\u6765\u521b\u5efa\u53ef\u6267\u884c\u7684Java\u5e94\u7528\u7a0b\u5e8f\u3002IDEA\u662f\u4e00\u4e2a\u88ab\u5e7f\u6cdb\u4f7f\u7528\u7684Java IDE\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u5bfc\u5165\u5916\u90e8Jar\u5305\uff0c\u5e76\u4f7f\u7528\u5b83\u4eec\u6765\u6784\u5efa\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528IDEA\u5bfc\u5165Jar\u5305\uff0c\u5e76\u4f7f\u7528\u5b83\u4eec\u6765\u6784\u5efaJava\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u5bfc\u5165Jar\u5305<\/h2>\n

  \u5728\u4f7f\u7528IDEA\u5bfc\u5165Jar\u5305\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u51c6\u5907\u597dJar\u5305\u6587\u4ef6\u3002Jar\u5305\u53ef\u4ee5\u4ece\u7f51\u7edc\u4e0b\u8f7d\uff0c\u4e5f\u53ef\u4ee5\u4ece\u672c\u5730\u6587\u4ef6\u5939\u4e2d\u83b7\u53d6\u3002<\/p>\n

  \u4e00\u65e6Jar\u5305\u6587\u4ef6\u51c6\u5907\u597d\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528IDEA\u5bfc\u5165\u5b83\u4eec\u3002\u9996\u5148\uff0c\u6253\u5f00IDEA\uff0c\u7136\u540e\u70b9\u51fb\u201cFile\u201d>\u201cProject Structure\u201d\u83dc\u5355\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201cLibraries\u201d\u9009\u9879\u5361\uff0c\u7136\u540e\u70b9\u51fb\u201c+\u201d\u53f7\u6309\u94ae\uff0c\u9009\u62e9\u201cJava\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cOK\u201d\u6309\u94ae\u3002\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9Jar\u5305\u6587\u4ef6\uff0c\u7136\u540e\u70b9\u51fb\u201cOK\u201d\u6309\u94ae\uff0c\u5373\u53ef\u5b8c\u6210Jar\u5305\u7684\u5bfc\u5165\u3002<\/p>\n

\u4f7f\u7528Jar\u5305<\/h2>\n

  \u4e00\u65e6Jar\u5305\u5bfc\u5165\u6210\u529f\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u5b83\u4eec\u6765\u6784\u5efaJava\u5e94\u7528\u7a0b\u5e8f\u3002\u5728IDEA\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u201cProject Structure\u201d\u83dc\u5355\u6765\u67e5\u770b\u5bfc\u5165\u7684Jar\u5305\uff0c\u4e5f\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u76f4\u63a5\u5f15\u7528\u5b83\u4eec\u3002<\/p>\n

  \u8981\u5728\u4ee3\u7801\u4e2d\u5f15\u7528Jar\u5305\uff0c\u9996\u5148\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0import\u8bed\u53e5\uff0c\u6307\u5b9a\u8981\u5f15\u7528\u7684Jar\u5305\u7684\u5168\u8def\u5f84\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528Jar\u5305\u4e2d\u7684\u7c7b\u548c\u65b9\u6cd5\u4e86\u3002<\/p>\n

  \u53e6\u5916\uff0c\u5728IDEA\u4e2d\u8fd8\u53ef\u4ee5\u4f7f\u7528\u201cProject Structure\u201d\u83dc\u5355\u6765\u67e5\u770b\u548c\u7ba1\u7406\u5df2\u7ecf\u5bfc\u5165\u7684Jar\u5305\u3002\u5728\u201cProject Structure\u201d\u83dc\u5355\u4e2d\uff0c\u53ef\u4ee5\u67e5\u770b\u5df2\u7ecf\u5bfc\u5165\u7684Jar\u5305\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u65b0\u7684Jar\u5305\uff0c\u6216\u8005\u5220\u9664\u5df2\u7ecf\u5bfc\u5165\u7684Jar\u5305\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528IDEA\u5bfc\u5165Jar\u5305\uff0c\u4ee5\u53ca\u5982\u4f55\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528Jar\u5305\u3002<\/strong>\u4f7f\u7528Jar\u5305\u53ef\u4ee5\u8ba9Java\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u7b80\u5355\uff0c\u4e5f\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u5f00\u53d1Java\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0cJar\u5305\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u8f6f\u4ef6\u5305\u683c\u5f0f\u3002\u5b83\u4eec\u5305\u542b\u4e86\u4e00\u7ec4\u53ef\u4ee5\u88abJava\u865a\u62df\u673a\u6267\u884c\u7684\u5b57\u8282\u7801\uff0c\u53ef\u4ee5\u88ab\u7528\u6765\u521b\u5efa\u53ef\u6267\u884c\u7684Java\u5e94\u7528\u7a0b\u5e8f\u3002IDEA\u662f\u4e00\u4e2a\u88ab\u5e7f\u6cdb\u4f7f\u7528<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-58627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/58627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=58627"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/58627\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=58627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=58627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=58627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}