Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Use micronaut kotlin.
https://micronaut.io/launch/
Come to the bright side.
Or Quarkus.
https://code.quarkus.io/
Spring bad hmkay. -
cb21910191y@dmonkey yup exactly. All the autogenerated code I used to get in the past made me forget how to manually set up a controller properly. Neither vs code nor kotlin language service reminded me of declaring the package. Also haven't found a tool to autogenerate this boilerplate.
Only thing left is the error for runApplication() which I cannot get rid of even though I configured it the settings. At least it works. -
dmonkey23271yLoooooool look at the bright side, now you'll always remember.
Btw didn't Spring boot had some kind of website where you could download a zip with some scaffolding?
Edit: yep
https://start.spring.io/
Related Rants
Seems like spring boot kotlin doesn't want to cooperate in any way. Tried to set up a backend with it, but it keeps showing an error regarding wrong jvm-target. The project runs nevertheless. I changed the maven settings according to the docs, but no change. Whatever, still runs. However a newly created "hello world" rest endpoint just doesn't work, even following a beginner tutorial. localhost:8080/hello ... error fallback page.
I really wanted to give kotlin a try. Doing the same with java, instantly working.
Fuck spring boot kotlin. Or fuck me for not knowing how to handle it.
rant
spring boot
nothing works
kotlin