spring-boot-kotlin-demo | Spring Boot Kotlin project with a REST Webservice | Security library
kandi X-RAY | spring-boot-kotlin-demo Summary
kandi X-RAY | spring-boot-kotlin-demo Summary
Spring Boot Kotlin project with a REST Webservice and Spring Data
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spring-boot-kotlin-demo
spring-boot-kotlin-demo Key Features
spring-boot-kotlin-demo Examples and Code Snippets
Community Discussions
Trending Discussions on spring-boot-kotlin-demo
QUESTION
I want to start a new project using Spring Boot 2 (that’s build snapshots for the time being), which in turn uses Spring Framework 5 (bleeding edge as well). Reason is that Spring 5 is supposed to have much improved Kotlin support, and I would like to use Kotlin.
Now the example that I find use Spring Boot 1.4.3, and of course Gradle, and of course Kotlin-based Gradle file. To be honest, this is too much new technology for me for a single project. I don’t even know how to add a new repository to the Gradle (Kotlin-Gradle!) build script. I would prefer a Maven project, since I’m familiar with that at least, and brand-new Spring and Kotlin will be enough experimentation.
So, how to do this in Maven? What’s the kotlin-spring
plugin called there that I see referenced for Gradle?
ANSWER
Answered 2017-Jan-13 at 17:18if you use the start.spring.io project generator (switch to the full version) you can choose spring boot 2 snapshot and kotlin as a language. For both maven and gradle based builds. Everything is in there.
That should be a good starting point :)
QUESTION
I get this exception when i try to use springboot + JPA + kotlin + maven
...ANSWER
Answered 2017-May-29 at 15:20From the log it looks like it's actually the 4th class, Application
, that you're having a problem with. It says that the init
method in that class shouldn't be private
or final
, your problem here would be the latter - functions and classes in Kotlin are final
by default.
You can make the method non-final by marking it with the open
keyword.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-boot-kotlin-demo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page