Spring + Gradle + Kotlin W8LT#5

  • View
    1.031

  • Download
    0

Embed Size (px)

Transcript

  • Spring Gradle Kotlin

    Web

    W8LT#5 @

  • () M2 Java, Kotlin, twitter:@fat_daruuuuma, github:jmatsu

  • Rails12

    (?) (`)

  • Rails4

    Play1.x () 2.x

    Play2.x sbtwwww(

  • () Play1.x Java7() ()

    Lambda Play2.x

  • Kotlin

  • Kotlin JVM intelliJJetBrains(OSS) Java Lambda

    7

  • () KotlinPlay1.x

    KotlinPlay2.x Gradle Sbt

    Kotlin @yy_yank SS

    http://www.slideshare.net/yyyank/server-side-kotlin-49030491

    Spring Boot

  • Spring Boot Spring framework

    Controller

    Not XML-based configuration. Java/Annotation-based Configuration!

    9

  • 10

  • 11

  • 12

  • 13

  • 14

  • (?)(???) Rails4

    one jar

    Play1.x () 2.x

    Play2.x

    sbtwwww( Gradle(?)

  • Controller layer Spring Boot StarterSBS) Web

    Model layer mongoDB via SBS

    View layer Thymeleaf via SBS

    Security component SBS Security

    16

  • Gradle Kotlin Kotlin plugin compileKotlinstdlib

    Spring Boot Spring Boot plugin compile springBootmainClass

    https://github.com/jmatsu/SpringBootWithKotlinSample

    17

  • KotlinIntStringSerializable modelID

    Converter Config

    Configinjection orz @Value(${spring.data.mongodb.database})

    Kotlin CE Raw string

    E.g. data class SInt(body: Int): Serializable

    18

  • Spring Boot w/ Kotlin Null && Let API

    AccessorPropertyView

    import A as B

    19

  • Spring Boot w/ Kotlin ViewKotlin Java

    KotlinHotDeploy Android

    20

  • HotDeploy

    WebKotlin Kotlin Android

    21