Embulkã®ãã©ã°ã¤ã³ãKotlinã§æ¸ãç´ãããæè¿èªåã®ä¸ã§æ¿ã¢ãè¨èªã®Kotlinã®åå¼·ä¼ãéãããã¨è¨ãã®ã§æ©éåå ãã¦ãã¾ããããµã¤ãã¼ã¨ã¼ã¸ã§ã³ãã®ãµã¼ããµã¤ãã®äºä¾ã ã£ããSpringã®Kotlin対å¿ã ã£ããKotlinã®æ³¢ãæ¥ã¦ããã®ãæãããã¦è¯ãã£ãã§ããå®é(å )Javaã¨ã³ã¸ãã¢ã¨ãã¦Kotlinã¯æ¬å½ã«çãã¨ãã¨ã«æãå±ãæãããã¦æ¸ãã¦ã¦æ¥½ããã§ããèªåã®ã¨ããã®ãããã¯ãã«ãæ¯éå°å ¥ãã¦ã¿ããã§ãã
ã¯ã©ã¹ã®ä½ãæ¹ã«è¦ãKotlinã®è¡¨ç¾å (@ngsw_taro ãã)
Kotlinã®Javaã«ã¯ãªãè±ããªè¡¨ç¾åã«ã¤ãã¦ã®è§£èª¬ã以ä¸ã®ãããªæ©è½ã¯ç¥ããªãã£ãã®ã§åèã«ãªãã¾ãããKotlinã¹ã¿ã¼ãããã¯æ¬²ããã£ããã©æ°ç§é ãã£ã…w
require
ã§åææ¡ä»¶ããã§ãã¯ã§ãã- ex)
require(a > 0, {âaã¯ã¼ã以ä¸ãã¡!"})
- ex)
tailrec
ãã¼ã¯ã¼ãã§æ«å°¾å帰ã®æé©å- ã«ã¼ãå¦çã«ãã¦ããããstackoverflowé²æ¢
Nothing
å- ããããåã®ãµãã¿ã¤ã
shield
ã§ç¶æ¿åºæ¥ãã¯ã©ã¹ãå¶éã§ãã
Spark Framework with Kotlin (@stormcat24 ãã)
Spark Javaãã¬ã¼ã ã¯ã¼ã¯ãå®éãããã¯ã·ã§ã³ç°å¢ã§ä½¿ã£ãç¥è¦ã®ç´¹ä»ãKotlinã ããããªãã¦Javaã§ãµã¼ãã¹ä½ãéã®è²ã ãªç¥è¦ãèãã¾ããã
- Springfox
- annotationããswaggeråãåºã
- Doma Framework
- è¯ãããã
- HIstrix
- circuit brakerããã¤ã¯ããµã¼ãã¹ã«ã¯å¿ é ã£ã½ã
- Jlokia
- JVMç£è¦
ãSpring â¤ï¸ Kotlinã (@making ãã)
Spring5ããã®Kotlinã®ãã¤ãã£ããµãã¼ãã«ã¤ãã¦ãSpringBootã§ã®ä¾ã交ãã¦ç´¹ä»ããã¨Spring5ã§å°å
¥ãããã®éåæãã³ããããã³ã°*1ãµãã¼ãã®Kotlin対å¿ã«ã¤ãã¦ãç´¹ä»ãã¦ã¾ããã ãããã¯ã ããã @sdeleuze ãããä½ã£ã¦ãã®ã§ãã©ãã¼ãã¦ããã¨ææ°æ
å ±ãç¥ããã¨ã®ãã¨ã
- Spring5ã®æ°æ©è½ (RouterFunctions, Reactive Streams)
- ãµã¼ãã¬ãããã¼ã¹ã ããããªãã¦ãã³ããããã³ã°ããµãã¼ãããã (spring-webflux)
- https://github.com/mix-it/mixit
- https://github.com/making/demo-router-functions