Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Create spring boot example #919
Comments
@ravening thanks for opening this issue! Yes currently we are missing an example for spring boot, I think we should create one! However, generally speaking its just a matter of the right DevSpace configuration, I don't see any problem why DevSpace shouldn't work with spring boot applications. Is there any error during |
@FabianKramm Even I was thinking the same.. its just a plain hello world java application which should be same as other projects but didnt find any errors in the logs as well. I did |
@ravening I will take a look at this and write a blog post about how to configure DevSpace for spring boot with hot reloading. We might add that as a java quick start guide as well. |
Alright. I did not find the time to create a blog post about DevSpace and spring boot but with the latest release, we now have a java quickstart project. It shows with a very simple example how to solve java container hot reloading with DevSpace. @ravening Is that what you were looking for? Feel free to check it out here: https://devspace.sh/cli/docs/getting-started/initialize-project |
This java quickstart is very simple, sync java file and rebuild in remote container. For java spring , it's too slow. If I got time , will post a hot reload sample, like https://github.com/HotswapProjects/HotswapAgent |
That looks awesome! Can't wait for you to contribute the next Java project. Thanks, @heroyin |
https://github.com/heroyin/quickstart-spring-java Spring java quickstart is coming! @LukasGentele |
@heroyin @LukasGentele is pushing new jar for one of the sub modules will trigger the hot code reload ? |
@Romeh Sorry for the late reply. I don't know how to make it work for multi-module spring boot applications but in case you figured it out, feel free to share your solution with us :) |
Is your feature request related to a problem?
I have a simple Java Spring boot application which displays greeting message on navigating to localhost:8080/hello but devspace is unable to serve the port forward nor able to reload the code changed dynamically
Which solution do you suggest?
When I change the Java code,
devspace dev
should automatically reload the code and build the changes similar to other supported languagesWhich alternative solutions exist?
Additional context
/kind feature