{"id":272035,"date":"2016-01-13T10:49:02","date_gmt":"2016-01-13T07:49:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=272035"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=272035","title":{"rendered":"\u041f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 RESTful \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 kotlin \u0438 spring boot"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/323\/251\/d4d\/323251d4df204cf4a5798e2148dcc6d5.png\" alt=\"image\"\/><\/p>\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u043f\u0440\u0435\u0434\u0434\u0432\u0435\u0440\u0438\u0438 \u0432\u044b\u0445\u043e\u0434\u0430 \u044f\u0437\u044b\u043a\u0430 Kotlin \u0438\u0437 beta, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0442 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  <a href=\"https:\/\/kotlinlang.org\/\">Kotlin<\/a> \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043e\u0442 JetBrains (\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 IntelliJ Idea) \u0434\u043b\u044f JVM, Android \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u0430\u044f java (\u0438\u043b\u0438 \u043a\u0430\u043a \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430\u044f scala). \u041d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044f\u0437\u044b\u043a \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043f\u0438\u0442\u0430\u043b \u0432 \u0441\u0435\u0431\u044f \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432, \u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0432\u043e\u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435: <\/p>\n<p>   \u2014 optional \u043e\u0442 swift, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/null-safety.html\">nullsafe \u0432 kotlin<\/a> <br \/>   \u2014 case \u043a\u043b\u0430\u0441\u0441\u044b \u0438\u0437 scala, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/data-classes.html\">data class \u0432 kotlin<\/a><br \/>   \u2014 \u0437\u0430\u043c\u0435\u043d\u0430 implicit \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u0438\u0437 scala, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/extensions.html\">extension \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/a><br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/delegation.html\">\u0434\u0435\u043b\u0435\u0433\u0430\u0442\u044b<\/a><br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/null-safety.html\">null safely<\/a><br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/typecasts.html\">smart cast<\/a><br \/>   \u2014 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/kotlinlang.org\/\">kotlinlang<\/a>.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 java \u0438\u043b\u0438 scala, \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/comparison-to-java.html\">kotlin &#038; java<\/a>, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/comparison-to-scala.html\">kotlin &#038; scala<\/a>.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0441\u0442\u043e\u0438\u0442 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b \u0441\u043e scala, \u0441 \u0435\u0435 \u00ab\u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e\u00bb \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0442\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u0443\u0434\u0435\u0442 kotlin, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435:<br \/>  <a name=\"habracut\"><\/a> <br \/>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e <s>\u0432 \u0442\u0430\u043d\u043a\u0435<\/s> \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u043b\u044b\u0448\u0438\u0442 \u043e \u044f\u0437\u044b\u043a\u0435, \u043d\u0438\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Hello world<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package hello  fun main(args: Array&lt;String&gt;) {    println(&quot;Hello World!&quot;) } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0427\u0442\u0435\u043d\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">fun main(args: Array&lt;String&gt;) {    if (args.size() == 0) {       println(&quot;Provide a name&quot;)       return    }    println(&quot;Hello, ${args[0]}!&quot;) } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">hello world c \u041e\u041e\u041f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">class Greeter(val name: String) {     fun greet() {        println(&quot;Hello, $name&quot;)    } }  fun main(args: Array&lt;String&gt;) {    Greeter(args[0]).greet() }   <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418\u0437 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f kotlin \u043e\u0441\u043e\u0431\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432 \u044f\u0437\u044b\u043a\u0430:<\/p>\n<p>   \u2014 \u043f\u0435\u0440\u0432\u043e\u0435 \u044d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 java. \u0412\u0441\u0435 \u0442\u0438\u043f\u044b \u0438 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0438\u0437 java \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0438\u0437 kotlin, \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0439 \u0442\u043e\u0439 \u00ab\u0430\u043d\u0430\u0440\u0445\u0438\u0438\u00bb, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u0432 scala (\u0434\u0430 \u0435\u0441\u0442\u044c scala.collection.JavaConversions._ \u0438 scala.collection.JavaConverters._, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u044d\u0442\u043e \u043d\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0435\u0439 \u0442\u0438\u043f\u043e\u0432);<br \/>   \u2014 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043e\u0442 \u0441\u0442\u0443\u0434\u0438\u0438 Intellij Idea, \u0445\u043e\u0442\u044c \u044f\u0437\u044b\u043a \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 Beta 4, \u0443\u0436\u0435 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c;<br \/>   \u2014 \u0430 \u0434\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 implicit \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438\u0437 scala, kotlin \u043f\u0440\u0435\u043f\u043e\u0434\u043d\u043e\u0441\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/extensions.html\">extension \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/a>;<br \/>   \u2014 \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 \u0441\u0442\u0430\u0432\u044f\u0442 \u0441\u0432\u043e\u0435\u0439 \u0446\u0435\u043b\u044c\u044e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f <b>\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u043e\u0439 \u0441 java<\/b> (\u043f\u0440\u0438\u0432\u0435\u0442 scala), \u0437\u0430 \u0447\u0442\u043e \u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0436\u0430\u0442\u044c \u0440\u0443\u043a\u0438! \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 scala, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0447\u0442\u043e \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 java;<br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/inline-functions.html\">inline \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/a> \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0421 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430, \u0438\u043b\u0438 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438;<br \/>   \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 <a href=\"http:\/\/beust.com\/weblog\/2015\/10\/30\/exploring-the-kotlin-standard-library\/\">\u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/a> \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<br \/>   \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u043b\u044f\u043c\u0431\u0434\u044b, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0442\u043e\u0439 \u0436\u0435 java 8. \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0438\u0437 scala.<\/p>\n<p>  \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0443 \u044f\u0437\u044b\u043a\u0430 \u0435\u0441\u0442\u044c \u0438 \u0441\u0432\u043e\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438:<\/p>\n<p>   \u2014 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 <a href=\"http:\/\/docs.scala-lang.org\/tutorials\/tour\/pattern-matching.html\">pattern matching<\/a> \u0438\u0437 scala, \u043d\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0441\u043f\u0430\u0441\u0430\u0435\u0442 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/typecasts.html\">smart cast<\/a> \u0438 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/multi-declarations.html#destructuring-declarations\">Destructuring Declarations<\/a>, \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0436\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u044b\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 pattern matching \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0442\u0430\u0440\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u044f \u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 java, \u043d\u043e \u0435\u0433\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0431\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0443\u0435\u043c\u0441\u044f \u0442\u0435\u043c \u0447\u0442\u043e \u0435\u0441\u0442\u044c;<br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/idioms.html\">try with resource<\/a> \u043f\u043e\u043a\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0430\u0447\u043d\u043e. \u041d\u043e \u0442\u0443\u0442 \u0430\u0432\u0442\u043e\u0440\u044b \u044f\u0437\u044b\u043a\u0430 \u043e\u0431\u0435\u0449\u0430\u044e\u0442 \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e. \u0410 \u043f\u043e\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0435\u0435\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043b\u0438\u0431\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u044f\u0437\u044b\u043a\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">try-with-resources<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">internal class ResourceHolder : AutoCloseable {     val resources = ArrayList&lt;AutoCloseable&gt;()      fun &lt;T : AutoCloseable&gt; T.autoClose(): T {         resources.add(this)         return this     }      override fun close() {         resources.reverse()         resources.forEach {             try {                 it.close()             } catch (e: Throwable) {                 e.printStackTrace()             }         }     } }  inline internal fun &lt;R&gt; using(block: ResourceHolder.() -&gt; R): R {     val holder = ResourceHolder()     try {         return holder.block()     } finally {         holder.close()     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">fun copy(from: Path, to: Path) {     using {         val input = Files.newInputStream(from).autoClose()         val output = Files.newOutputStream(to).autoClose()         input.copyTo(output)     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>   \u2014 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 async \u0438 yield, \u043d\u043e \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c \u0430\u0432\u0442\u043e\u0440\u043e\u0432, \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u043b\u0438\u0437\u0430 1.0 \u043c\u043e\u0436\u043d\u043e \u0436\u0434\u0430\u0442\u044c \u0438\u0445 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 RESTful \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 <a href=\"http:\/\/projects.spring.io\/spring-boot\/\">spring boot<\/a>, \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 <a href=\"http:\/\/gradle.org\/\">gradle<\/a>. <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0442\u0443\u0434\u0438\u0438<\/h4>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/www.jetbrains.com\/idea\/#chooseYourEdition\">IntelliJ Idea Community<\/a> (\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 Eclipse, \u043f\u043e\u0434 \u043d\u0435\u0435 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d kotlin. <b>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0447\u0435\u0440\u0435\u0437 settings -&gt; plugin<\/b>, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043f\u043e\u043a\u0430 \u044f\u0437\u044b\u043a \u0432 beta).<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 gradle, \u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0432 \u0441\u0442\u0443\u0434\u0438\u0438 (settings -&gt; build, execution, deployment -&gt; gradle -&gt; user local gradle distribution. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u043a gradle \u0432 gradle home).<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h4>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 gradle kotlin (new project -&gt; gradle -&gt; kotlin) \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 build.gradle \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 build.gradle<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">buildscript {     ext.kotlin_version = '1.0.0-beta-4584'     repositories {         mavenCentral()         maven { url &quot;http:\/\/repo.spring.io\/snapshot&quot; }         maven { url &quot;http:\/\/repo.spring.io\/milestone&quot; }     }     dependencies {         classpath(&quot;org.springframework.boot:spring-boot-gradle-plugin:1.3.0.RELEASE&quot;)         classpath(&quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;)     } }  apply plugin: 'idea' apply plugin: 'spring-boot' apply plugin: 'kotlin'  jar {     baseName = 'test-spring-kotlin-project'     version = '0.1.0' }  repositories {     mavenCentral()     maven { url &quot;http:\/\/repo.spring.io\/snapshot&quot; }     maven { url &quot;http:\/\/repo.spring.io\/milestone&quot; }      maven { url &quot;http:\/\/10.10.10.67:8081\/nexus\/content\/groups\/public&quot; } }  dependencies {     compile(&quot;org.springframework.boot:spring-boot-starter-web:1.3.0.RELEASE&quot;)     compile(&quot;org.springframework:spring-jdbc:4.2.3.RELEASE&quot;)     compile(&quot;com.fasterxml.jackson.module:jackson-module-kotlin:2.6.4&quot;)      compile(&quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot;) } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b application.properties \u0432 \u043f\u0430\u043f\u043a\u0435 src\/main\/resources, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u043a\u0430\u0436\u0435\u043c \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 spring boot:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">application.properties<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">server.port = 8080 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b Application.kt \u0432 \u043f\u0430\u043f\u043a\u0435 src\/main\/kotlin\/test.kotlin.spring.project. \u0412 \u043d\u0435\u043c \u0431\u0443\u0434\u0443\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 spring boot:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Application.kt<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package test.kotlin.spring.project  import com.fasterxml.jackson.annotation.JsonInclude import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.registerKotlinModule import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.EnableAutoConfiguration import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration import org.springframework.boot.builder.SpringApplicationBuilder import org.springframework.boot.context.web.SpringBootServletInitializer import org.springframework.context.annotation.Bean import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter  @SpringBootApplication @EnableAutoConfiguration(exclude = arrayOf(DataSourceAutoConfiguration::class)) open class Application : SpringBootServletInitializer() {      @Bean     open fun mapperForKotlinTypes(): MappingJackson2HttpMessageConverter {         return MappingJackson2HttpMessageConverter().apply { objectMapper = jacksonMapper }     }      override fun configure(application: SpringApplicationBuilder): SpringApplicationBuilder =             application.sources(Application::class.java)      companion object {          val jacksonMapper = ObjectMapper().registerKotlinModule()                 .setSerializationInclusion(JsonInclude.Include.NON_ABSENT)                 .enable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES)          @Throws(Exception::class)         @JvmStatic fun main(args: Array&lt;String&gt;) {             println(&quot;starting application...&quot;)             SpringApplication.run(Application::class.java, *args)         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  mapperForKotlinTypes \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a jackson mapping \u0434\u043b\u044f kotlin. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u0441\u0438\u043c\u0431\u0438\u043e\u0437\u0430 scala \u0438 argonaut.  <\/p>\n<pre><code class=\"java\">@Bean     open fun mapperForKotlinTypes(): MappingJackson2HttpMessageConverter {         return MappingJackson2HttpMessageConverter().apply { objectMapper = jacksonMapper }     } <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 rest \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0411\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432:<\/p>\n<p>   \u2014 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c AckResponse \u043d\u0430 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 \u0438\u043c\u0435\u043d\u0438 \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u0438. <br \/>   \u2014 \u043c\u0435\u0442\u043e\u0434, \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u043e\u043a, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u043e \u0434\u043b\u0438\u043d\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e &#8216;_&#8217;, \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0443\u0436\u0435 \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c &#8216;,&#8217; (\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430)<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b ServiceController.kt \u0432 \u043f\u0430\u043f\u043a\u0435 src\/main\/kotlin\/test.kotlin.spring.project.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">ServiceController.kt<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package test.kotlin.spring.project  import org.springframework.http.MediaType import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestMethod import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.bind.annotation.RestController  data class AckResponse(val status: Boolean, val result: String, val message: String? = null)  @RestController class ServiceController {     @RequestMapping(             path = arrayOf(&quot;\/request&quot;),             method = arrayOf(RequestMethod.GET),             produces = arrayOf(MediaType.APPLICATION_JSON_UTF8_VALUE))     fun nameRequest(             @RequestParam(value = &quot;name&quot;) name: String,             @RequestParam(value = &quot;surname&quot;, required = false) surname: String?): AckResponse {         return if (surname == null)             AckResponse(status = true, result = &quot;Hi $name&quot;, message = &quot;surname is empty&quot;)         else             AckResponse(status = true, result = &quot;Hi $surname,$name&quot;)     }      @RequestMapping(             path = arrayOf(&quot;\/sort_request&quot;),             method = arrayOf(RequestMethod.GET),             produces = arrayOf(MediaType.APPLICATION_JSON_UTF8_VALUE))     fun findMinimum(             @RequestParam(value = &quot;values&quot;) values: Array&lt;String&gt;): AckResponse {         println(&quot;values:&quot;)         values.forEach { println(it) }          val minValue = values.apply { sortBy { it.length } }             .firstOrNull()             ?.split(&quot;_&quot;)             ?.sorted()             ?.joinToString(&quot;,&quot;) ?: &quot;&quot;          return AckResponse(status = true, result = minValue)     } }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h4>\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b<\/h4>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 Application.kt. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 \u043b\u043e\u0433\u0435 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041b\u043e\u0433\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre>starting application...    .   ____          _            __ _ _  \/\\\\ \/ ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\ ( ( )\\___ | '_ | '_| | '_ \\\/ _` | \\ \\ \\ \\  \\\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )   '  |____| .__|_| |_|_| |_\\__, | \/ \/ \/ \/  =========|_|==============|___\/=\/_\/_\/_\/  :: Spring Boot ::        (v1.3.0.RELEASE)  2016-01-12 12:47:48.242  INFO 88 --- [           main] t.k.s.project.Application$Companion      : Starting Application.Companion on Lenovo-PC with PID 88 (D:\\IDA_Projects\\test\\build\\classes\\main started by admin in D:\\IDA_Projects\\test) 2016-01-12 12:47:48.247  INFO 88 --- [           main] t.k.s.project.Application$Companion      : No profiles are active 2016-01-12 12:47:48.413  INFO 88 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@dbf57b3: startup date [Tue Jan 12 12:47:48 MSK 2016]; root of context hierarchy 2016-01-12 12:47:50.522  INFO 88 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org\/springframework\/boot\/autoconfigure\/web\/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org\/springframework\/boot\/autoconfigure\/web\/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]] 2016-01-12 12:47:51.066  INFO 88 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$ede1977c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2016-01-12 12:47:51.902  INFO 88 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http) 2016-01-12 12:47:51.930  INFO 88 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat 2016-01-12 12:47:51.937  INFO 88 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat\/8.0.28 2016-01-12 12:47:52.095  INFO 88 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[\/]       : Initializing Spring embedded WebApplicationContext 2016-01-12 12:47:52.095  INFO 88 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3688 ms 2016-01-12 12:47:52.546  INFO 88 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [\/] 2016-01-12 12:47:52.556  INFO 88 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'characterEncodingFilter' to: [\/*] 2016-01-12 12:47:52.557  INFO 88 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'hiddenHttpMethodFilter' to: [\/*] 2016-01-12 12:47:52.559  INFO 88 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'httpPutFormContentFilter' to: [\/*] 2016-01-12 12:47:52.559  INFO 88 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'requestContextFilter' to: [\/*] 2016-01-12 12:47:52.985  INFO 88 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@dbf57b3: startup date [Tue Jan 12 12:47:48 MSK 2016]; root of context hierarchy 2016-01-12 12:47:53.089  INFO 88 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped &quot;{[\/request],methods=[GET],produces=[application\/json;charset=UTF-8]}&quot; onto public final test.kotlin.spring.project.AckResponse test.kotlin.spring.project.ServiceController.pullUpdate(java.lang.String,java.lang.String) 2016-01-12 12:47:53.094  INFO 88 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped &quot;{[\/error]}&quot; onto public org.springframework.http.ResponseEntity&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2016-01-12 12:47:53.094  INFO 88 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped &quot;{[\/error],produces=[text\/html]}&quot; onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest) 2016-01-12 12:47:53.138  INFO 88 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [\/webjars\/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2016-01-12 12:47:53.139  INFO 88 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [\/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2016-01-12 12:47:53.195  INFO 88 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [\/**\/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2016-01-12 12:47:53.512  INFO 88 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup 2016-01-12 12:47:53.612  INFO 88 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http) 2016-01-12 12:47:53.620  INFO 88 --- [           main] t.k.s.project.Application$Companion      : Started Application.Companion in 6.076 seconds (JVM running for 7.177) 2016-01-12 12:47:57.874  INFO 88 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[\/]       : Initializing Spring FrameworkServlet 'dispatcherServlet' 2016-01-12 12:47:57.874  INFO 88 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started 2016-01-12 12:47:57.897  INFO 88 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 23 ms<\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"http:\/\/localhost:8080\/request?name=Kris\">\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c<\/a>. \u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"javascript\">{   status: true,   result: &quot;Hi Kris&quot;,   message: &quot;surname is empty&quot; } <\/code><\/pre>\n<p>  \u0418 <a href=\"http:\/\/localhost:8080\/request?name=Kris&amp;surname=Eagle\">\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u0435\u0439<\/a>, \u0442\u043e\u0433\u0434\u0430 \u043e\u0442\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0439:<\/p>\n<pre><code class=\"javascript\">{   status: true,   result: &quot;Hi Eagle, Kris&quot; } <\/code><\/pre>\n<p>  \u0412\u044b\u0437\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: <a href=\"http:\/\/localhost:8080\/sort_request?values=virst_value_1_3,second_value_2_5_6\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/a>. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c:<\/p>\n<pre><code class=\"javascript\">{   status: true,   result: &quot;1,3,value,virst&quot; } <\/code><\/pre>\n<p>  \u0422\u043e\u0442 \u0436\u0435 \u0432\u044b\u0437\u043e\u0432, \u043d\u043e \u0441 \u043f\u0443\u0441\u0442\u044b\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c: <a href=\"http:\/\/localhost:8080\/sort_request?values\">\u0412\u044b\u0437\u043e\u0432<\/a>  <\/p>\n<pre><code class=\"javascript\">{   status: true,   result: &quot;&quot; } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043e\u0434\u0438\u043d runnable jar, \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439: gradle build. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u043d \u0432 \u043e\u0434\u0438\u043d \u0430\u0440\u0445\u0438\u0432, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438. \u041f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0442\u0435\u043c \u0436\u0435 assemble, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u0430\u0440\u0445\u0438\u0432 \u0441 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u043e\u0439 \u0432\u0441\u0435\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. <\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e kotlin \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043b\u044e\u0431\u044b\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c, \u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f java, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0435\u0435 \u0437\u0430\u043c\u0435\u043d\u044b. \u042d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u044f\u0437\u044b\u043a\u0430 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0442\u0430\u043a\u0430\u044f \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f \u043a\u0430\u043a \u0442\u0430 \u0436\u0435 scala, \u043d\u043e \u0443\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0442\u043e\u043c \u0436\u0435 big data, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c java api. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0438\u0437 kotlin \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 java, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0441\u0435 \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 java, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0432 kotlin. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0438\u0437 \u0441\u0442\u0443\u0434\u0438\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043b\u0435\u0433\u043a\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 java \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u043d\u0430 kotlin (\u043f\u0440\u0430\u0432\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438). JetBrains \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430 \u043f\u0443\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 java \u0438 scala. \u0418 \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f kotlin \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0430 <a href=\"https:\/\/github.com\/evgzakharov\/kotlin_spring_boot.git\">github<\/a>.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/274997\/\"> http:\/\/habrahabr.ru\/post\/274997\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/323\/251\/d4d\/323251d4df204cf4a5798e2148dcc6d5.png\" alt=\"image\"\/><\/p>\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u043f\u0440\u0435\u0434\u0434\u0432\u0435\u0440\u0438\u0438 \u0432\u044b\u0445\u043e\u0434\u0430 \u044f\u0437\u044b\u043a\u0430 Kotlin \u0438\u0437 beta, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0442 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  <a href=\"https:\/\/kotlinlang.org\/\">Kotlin<\/a> \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043e\u0442 JetBrains (\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 IntelliJ Idea) \u0434\u043b\u044f JVM, Android \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u0430\u044f java (\u0438\u043b\u0438 \u043a\u0430\u043a \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430\u044f scala). \u041d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044f\u0437\u044b\u043a \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043f\u0438\u0442\u0430\u043b \u0432 \u0441\u0435\u0431\u044f \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432, \u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0432\u043e\u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435: <\/p>\n<p>   \u2014 optional \u043e\u0442 swift, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/null-safety.html\">nullsafe \u0432 kotlin<\/a> <br \/>   \u2014 case \u043a\u043b\u0430\u0441\u0441\u044b \u0438\u0437 scala, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/data-classes.html\">data class \u0432 kotlin<\/a><br \/>   \u2014 \u0437\u0430\u043c\u0435\u043d\u0430 implicit \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u0438\u0437 scala, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/extensions.html\">extension \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/a><br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/delegation.html\">\u0434\u0435\u043b\u0435\u0433\u0430\u0442\u044b<\/a><br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/null-safety.html\">null safely<\/a><br \/>   \u2014 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/typecasts.html\">smart cast<\/a><br \/>   \u2014 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/kotlinlang.org\/\">kotlinlang<\/a>.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 java \u0438\u043b\u0438 scala, \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/comparison-to-java.html\">kotlin &#038; java<\/a>, <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/comparison-to-scala.html\">kotlin &#038; scala<\/a>.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0441\u0442\u043e\u0438\u0442 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b \u0441\u043e scala, \u0441 \u0435\u0435 \u00ab\u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e\u00bb \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0442\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u0443\u0434\u0435\u0442 kotlin, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-272035","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272035"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272035\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}