Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewbednarski/6b0ad7b68ee97862b871 to your computer and use it in GitHub Desktop.
Save matthewbednarski/6b0ad7b68ee97862b871 to your computer and use it in GitHub Desktop.
An example Spring Boot Application which turns off the default Spring DispatcherServlet
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration;
/**
SpringBootNoDispatcherServlet.java SpringBootServletRegistrationOverrides.java Created by matthew.bednarski on 19/06/2015.
*/
@SpringBootApplication(exclude = { DispatcherServletAutoConfiguration.class })
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment