kotlin+ spring boot 2 - sydspace · 14/08/2017 · “spring boot is a bit more cool with kotlin*...
TRANSCRIPT
![Page 1: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/1.jpg)
Kotlin +SpringBoot2
ErikPragt(@epragt)
![Page 2: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/2.jpg)
Meetup’sKotlin usage
Android
Backend
![Page 3: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/3.jpg)
WhyKotlin?
“SpringBootisabitmorecoolwithKotlin*”
*https://moelholm.com/2017/03/19/spring-boot-a-bit-more-cool-with-kotlin/
![Page 4: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/4.jpg)
Spring5
![Page 5: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/5.jpg)
![Page 6: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/6.jpg)
Otherfeatures
• FunctionalbeandeclarationDSL(SPR-15755)• Arrayliterals• Null-safetyofSpringFrameworkAPI(SPR-15540)(JSR-305)
• Kotlin basedGradle buildconfiguration• Kotlin Scriptbasedtemplate
![Page 7: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/7.jpg)
FunctionalBeanDeclaration
![Page 8: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/8.jpg)
ArrayLiterals(Kotlin 1.2)
![Page 9: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/9.jpg)
NullSafety(JSR305..ish)
• JSR305adds@NotNull etc infotoJavacode• HelpfulforIDE’s,toolslikeSonar,andKotlin
• Specneverimplementedfully
![Page 10: Kotlin+ Spring Boot 2 - SYDspace · 14/08/2017 · “Spring Boot is a bit more cool with Kotlin* ... •Null-safety of Spring Framework API (SPR-15540) (JSR-305) •Kotlinbased](https://reader034.vdocuments.us/reader034/viewer/2022042712/5f9a659b601aca2400643a9b/html5/thumbnails/10.jpg)