Created
August 26, 2015 07:22
-
-
Save matthewbednarski/6b0ad7b68ee97862b871 to your computer and use it in GitHub Desktop.
An example Spring Boot Application which turns off the default Spring DispatcherServlet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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