title: What are the differences using spring boot with Kotlin and with Java?
body: <p>What are the differences using spring boot with Kotlin and with Java?</p>
  
  <p>Kotlin is among the three languages you could choose to start your app with <a href="https://start.spring.io" rel="noreferrer">https://start.spring.io</a>. So it's supported by the spring boot team. I used it to develop some microservices and as far as I know everything went fine at the end but I would like to have some feedback from other developers because I try to convince my new team to start our new microservices in Kotlin.</p>
  
  <p>Pros:</p>
  
  <ul>
  <li>Null safety </li>
  <li>Clearer code</li>
  <li>Val over var</li>
  </ul>
  
  <p>Cons:</p>
  
  <ul>
  <li>Mockito not Kotlin friendly (I switched to mockk) </li>
  <li>Code coverage was not out of the box (we had to develop our own plugin) </li>
  <li>Risk to have Java moving faster than Kotlin</li>
  </ul>