Skip to content

Instantly share code, notes, and snippets.

@mmafrar
Created June 6, 2021 00:59
Show Gist options
  • Save mmafrar/74afc82cf59de871d8b60870dd2012f7 to your computer and use it in GitHub Desktop.
Save mmafrar/74afc82cf59de871d8b60870dd2012f7 to your computer and use it in GitHub Desktop.
Deploying Spring Boot MVC with JSP project to AWS Elastic Beanstalk
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@SpringBootApplication
public class DemoApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(DemoApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment