rjaros / kvision

Object oriented web framework for Kotlin/JS
https://kvision.io
MIT License
1.23k stars 65 forks source link

Add support for Spring Boot Web MVC (for building a fat/uber jar) #516

Closed DanielScholzde closed 7 months ago

DanielScholzde commented 7 months ago

I am building a fullstack KMP web application with your nice and extensive kvision framework. I decided to use Spring Boot Web MVC in favor of the reactive stack (WebFlux) because I need to use Hibernate and I think Spring Boot Web MVC combined with java's virtual threads is better future-proof than Spring Boot reactive (because of its complexity/overhead with project reactor base).

My addition adds recognition of Spring Boot Web MVC to get the benefits of your gradle tasks code to build a fat jar containing the backend and the frontend code. (The use of your KMP code generation does not work with Spring Boot Web MVC, this is not a big issue because I used standard RestController and a small coroutines frontend client. Code generation would also be desirable for this use case in the future).

I would be very happy if this feature could be included.

rjaros commented 7 months ago

No problem :-)