{"id":131733,"date":"2020-07-06T14:20:54","date_gmt":"2020-07-06T06:20:54","guid":{"rendered":"http:\/\/4563.org\/?p=131733"},"modified":"2020-07-06T14:20:54","modified_gmt":"2020-07-06T06:20:54","slug":"scala%e8%af%ad%e8%a8%80%e5%ad%a6%e4%b9%a0%ef%bc%88%e4%b8%80%ef%bc%89%e3%80%81%e5%88%9d%e8%af%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=131733","title":{"rendered":"scala\u8bed\u8a00\u5b66\u4e60\uff08\u4e00\uff09\u3001\u521d\u8bc6"},"content":{"rendered":"<h3><a href=\"https:\/\/www.studytime.xin\/article\/#scala\u7b80\u4ecb\" title=\"scala\u7b80\u4ecb\"><\/a>scala\u7b80\u4ecb<\/h3>\n<p>scala\u662f\u8fd0\u884c\u5728 JVM \u4e0a\u7684\u591a\u8303\u5f0f\u7f16\u7a0b\u8bed\u8a00\uff0c\u540c\u65f6\u652f\u6301\u9762\u5411\u5bf9\u8c61\u548c\u9762\u5411\u51fd\u6570\u7f16\u7a0b\u3002\u65e9\u671fscala\u521a\u51fa\u73b0\u7684\u65f6\u5019\uff0c\u5e76\u6ca1\u6709\u600e\u4e48\u5f15\u8d77\u91cd\u89c6\uff0c\u968f\u7740Spark\u548cKafka\u8fd9\u6837\u57fa\u4e8escala\u7684\u5927\u6570\u636e\u6846\u67b6\u7684\u5174\u8d77\uff0cscala\u9010\u6b65\u8fdb\u5165\u5927\u6570\u636e\u5f00\u53d1\u8005\u7684\u773c\u5e18\u3002scala\u7684\u4e3b\u8981\u4f18\u52bf\u662f\u5b83\u7684\u8868\u8fbe\u6027\u3002<\/p>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u5b98\u7f51\u5730\u5740-http-www-scala-lang-org\" title=\"\u5b98\u7f51\u5730\u5740 http:\/\/www.scala-lang.org\"><\/a>\u5b98\u7f51\u5730\u5740 <a href=\"http:\/\/www.scala-lang.org\">http:\/\/www.scala-lang.org<\/a><\/h3>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528scala\" title=\"\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528scala\"><\/a>\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528scala<\/h3>\n<ul>\n<li>\u5f00\u53d1\u5927\u6570\u636e\u5e94\u7528\u7a0b\u5e8f\uff08Spark\u7a0b\u5e8f\u3001Flink\u7a0b\u5e8f\uff09<\/li>\n<li>\u8868\u8fbe\u80fd\u529b\u5f3a\uff0c\u4e00\u884c\u4ee3\u7801\u62b5\u5f97\u4e0aJava\u591a\u884c\uff0c\u5f00\u53d1\u901f\u5ea6\u5feb<\/li>\n<li>\u517c\u5bb9Java\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5e9e\u5927\u7684Java\u7c7b\u5e93<\/li>\n<\/ul>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#scala-\u73af\u5883\u5b89\u88c5\" title=\"scala \u73af\u5883\u5b89\u88c5\"><\/a>scala \u73af\u5883\u5b89\u88c5<\/h3>\n<h4><a href=\"https:\/\/www.studytime.xin\/article\/#\u5b89\u88c5scala\u7f16\u8bd1\u5668\u4ee5\u53ca\u5f00\u53d1\u5de5\u5177\" title=\"\u5b89\u88c5scala\u7f16\u8bd1\u5668\u4ee5\u53ca\u5f00\u53d1\u5de5\u5177\"><\/a>\u5b89\u88c5scala\u7f16\u8bd1\u5668\u4ee5\u53ca\u5f00\u53d1\u5de5\u5177<\/h4>\n<h5><a href=\"https:\/\/www.studytime.xin\/article\/#Java\u7a0b\u5e8f\u7f16\u8bd1\u6267\u884c\u6d41\u7a0b\" title=\"Java\u7a0b\u5e8f\u7f16\u8bd1\u6267\u884c\u6d41\u7a0b\"><\/a>Java\u7a0b\u5e8f\u7f16\u8bd1\u6267\u884c\u6d41\u7a0b<\/h5>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/07\/20200706_5f034d9846843.png\" alt=\"scala\u8bed\u8a00\u5b66\u4e60\uff08\u4e00\uff09\u3001\u521d\u8bc6\"><\/p>\n<h5><a href=\"https:\/\/www.studytime.xin\/article\/#Scala\u7a0b\u5e8f\u7f16\u8bd1\u6267\u884c\u6d41\u7a0b\" title=\"Scala\u7a0b\u5e8f\u7f16\u8bd1\u6267\u884c\u6d41\u7a0b\"><\/a>Scala\u7a0b\u5e8f\u7f16\u8bd1\u6267\u884c\u6d41\u7a0b<\/h5>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/07\/20200706_5f034d9cb19cb.png\" alt=\"scala\u8bed\u8a00\u5b66\u4e60\uff08\u4e00\uff09\u3001\u521d\u8bc6\"><\/p>\n<h4><a href=\"https:\/\/www.studytime.xin\/article\/#\u5b89\u88c5Java-JDK\" title=\"\u5b89\u88c5Java JDK\"><\/a>\u5b89\u88c5Java JDK<\/h4>\n<h4><a href=\"https:\/\/www.studytime.xin\/article\/#\u5b89\u88c5scala-SDK\" title=\"\u5b89\u88c5scala SDK\"><\/a>\u5b89\u88c5scala SDK<\/h4>\n<p>scala SDK\u662fscala\u8bed\u8a00\u7684\u7f16\u8bd1\u5668\uff0c\u8981\u5f00\u53d1scala\u7a0b\u5e8f\uff0c\u5fc5\u987b\u8981\u5148\u5b89\u88c5SDK<\/p>\n<h5><a href=\"https:\/\/www.studytime.xin\/article\/#\u4e0b\u8f7d\u5b89\u88c5\u5305scala-2-11-8-zip\" title=\"\u4e0b\u8f7d\u5b89\u88c5\u5305scala-2.11.8.zip\"><\/a>\u4e0b\u8f7d\u5b89\u88c5\u5305scala-2.11.8.zip<\/h5>\n<p><a href=\"https:\/\/www.scala-lang.org\/download\/2.11.8.html\">https:\/\/www.scala-lang.org\/download\/2.11.8.html<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/07\/20200706_5f034daa20505.png\" alt=\"scala\u8bed\u8a00\u5b66\u4e60\uff08\u4e00\uff09\u3001\u521d\u8bc6\"><\/p>\n<h5><a href=\"https:\/\/www.studytime.xin\/article\/#\u89e3\u538b\u6587\u4ef6\u4e14\u914d\u7f6e\u73af\u5883\u53d8\u91cf\" title=\"\u89e3\u538b\u6587\u4ef6\u4e14\u914d\u7f6e\u73af\u5883\u53d8\u91cf\"><\/a>\u89e3\u538b\u6587\u4ef6\u4e14\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h5>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><span>3<\/span><br><span>4<\/span><br><span>5<\/span><br><span>6<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>vim ~&#x2F;.bash_profile<\/span><br><span><\/span><br><span>export SCALA_HOME&#x3D;&#x2F;Users&#x2F;baihe&#x2F;Code&#x2F;tools&#x2F;scala-2.11.8<\/span><br><span>export PATH&#x3D;$PATH:$SCALA_HOME&#x2F;bin<\/span><br><span><\/span><br><span>source ~&#x2F;.bash_profile<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#IDEA\u7684scala\u63d2\u4ef6\" title=\"IDEA\u7684scala\u63d2\u4ef6\"><\/a>IDEA\u7684scala\u63d2\u4ef6<\/h3>\n<p>IDEA\u9ed8\u8ba4\u662f\u4e0d\u652f\u6301scala\u7a0b\u5e8f\u5f00\u53d1\uff0c\u6240\u4ee5\u9700\u8981\u6765\u5b89\u88c5scala\u63d2\u4ef6\u6765\u652f\u6301scala\u8bed\u8a00<\/p>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u70b9\u51fbFile-\uff0c\u518d\u70b9\u51fbSettings\" title=\"\u70b9\u51fbFile \uff0c\u518d\u70b9\u51fbSettings\"><\/a>\u70b9\u51fbFile \uff0c\u518d\u70b9\u51fbSettings<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/07\/20200706_5f034daf3eeb4.png\" alt=\"scala\u8bed\u8a00\u5b66\u4e60\uff08\u4e00\uff09\u3001\u521d\u8bc6\"><br \/><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/07\/20200706_5f034dbbcb0c1.png\" alt=\"scala\u8bed\u8a00\u5b66\u4e60\uff08\u4e00\uff09\u3001\u521d\u8bc6\"><\/p>\n<h4><a href=\"https:\/\/www.studytime.xin\/article\/#\u67e5\u8be2scala\uff0c\u9009\u62e9install\" title=\"\u67e5\u8be2scala\uff0c\u9009\u62e9install\"><\/a>\u67e5\u8be2scala\uff0c\u9009\u62e9install<\/h4>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#scala\u7684REPL\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\" title=\"scala\u7684REPL\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\"><\/a>scala\u7684REPL\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668<\/h3>\n<p>Scala\u63d0\u4f9b\u7684\u6700\u91cd\u8981\u7684\u4e00\u4e2a\u5de5\u5177\u662f\u4ea4\u4e92\u6a21\u5f0f\uff08REPL\uff09\u3002==REPL\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668==\uff0c\u53ef\u4ee5\u5373\u65f6\u7f16\u8bd1\u3001\u8fd0\u884c\u4ee3\u7801\u5e76\u8fd4\u56de\u7ed3\u679c\uff0c\u65b9\u4fbf\u524d\u671f\u505a\u5b66\u4e60\u548c\u6d4b\u8bd5\u3002<br \/>REPL\uff1a R(read)\u3001E(evaluate) \u3001P\uff08print\uff09\u3001L\uff08loop\uff09<br \/>\u8981\u542f\u52a8scala\u89e3\u91ca\u5668\uff0c\u53ea\u9700\u8981\u6253\u5f00\u63a7\u5236\u53f0\uff0c<code>scala<\/code>\u547d\u4ee4\u5373\u53ef\u3002<br \/>\u4f7f\u7528<code>:quit<\/code>\u9000\u51fascala\u89e3\u91ca\u5668<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scala\u7b80\u4ecb scala\u662f\u8fd0\u884c\u5728&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/131733"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131733"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/131733\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131733"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}