I want to know where and how can I deploy a Java web application made with Spring Boot or an app built with servlets or JSP.
Consider me a beginner in this topic. If you have suggestions about what I should learn first in order to accomplish this then please share, also if you have any links to particularly helpful blogs or videos that will do too.
Thank you all in advance.
In the Spring Boot Document, they said that 'Each SpringApplication will register a shutdown hook with the JVM to ensure that the ApplicationContext is closed gracefully on exit. ' When I click ctrl+c on the shell command, the application can be shutdown gracefully.
Open a terminal window. Create a local directory to hold your Spring Boot application by typing mkdir SpringBoot. Change to that directory by typing cd SpringBoot . Clone the Spring Boot Getting Started sample project into the directory you created by typing git clone https://github.com/spring-guides/gs-spring-boot.
I too have used GCP to host a Spring-Boot service. I followed this article almost religiously provided by Spring Boot(https://www.baeldung.com/spring-boot-google-app-engine) as well as this github read me that includes extra information about preparing your service to be hosted onto GCP (https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/appengine-standard-java8/springboot-appengine-standard)
pom.xml
.appengine/app.yaml
fileServlet
class in your main application file so that GCP has a main endpoint when any call is made to utilize your Spring-Boot servicesYou can use GCP (google cloud platform) App Engine for the deployment purpose. It's easy to learn and free to use for 1 year.
Deploy Spring Boot Application in App Engine standard
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With