Also available is the ServletRegistrationBean
@Bean
public ServletRegistrationBean servletRegistrationBean(){
return new ServletRegistrationBean(new FooServlet(),"/someOtherUrl/*");
}
Which ended up being the path I took.
More Related Contents:
- Running code after Spring Boot starts
- Spring Boot REST API – request timeout?
- How to customise the Jackson JSON mapper implicitly used by Spring Boot?
- Spring Boot Multiple Datasource
- Spring Boot configure and use two data sources
- After Spring Boot 2.0 migration: jdbcUrl is required with driverClassName
- How do I configure HikariCP in my Spring Boot app in my application.properties files?
- SpringBoot – making jar files – No auto configuration classes found in META-INF/spring.factories
- Setting active profile and config location from command line in spring boot
- How do I tell Spring Boot which main class to use for the executable jar?
- Spring Boot Actuator application won’t start on Ubuntu VPS
- Spring Boot default H2 jdbc connection (and H2 console)
- Configure active profile in SpringBoot via Maven
- Spring Boot with redirecting with single page angular2
- Spring AOP not working, when the method is called internally within a bean
- how to use Spring Boot profiles
- Heroku cannot deploy Java 11 Spring Boot App [duplicate]
- Configure ViewResolver with Spring Boot and annotations gives No mapping found for HTTP request with URI error
- How to get bean using application context in spring boot
- Maven Resource Filtering with Spring Boot: Could not resolve placeholder
- Unable to use Spring Property Placeholders in logback.xml
- Max limit of MultipartFile in Spring Boot
- How do I run a spring boot executable jar in a Production environment?
- How do I create beans programmatically in Spring Boot?
- How to set a Spring Boot property with an underscore in its name via Environment Variables?
- Missing CrudRepository#findOne method
- How can I run a Spring Boot application on port 80
- How do I disable resolving login parameters passed as url parameters / from the url
- How to customise Jackson in Spring Boot 1.4
- SpringBoot ComponentScan issue with multi-module project