@RequestMapping
has a String[]
value parameter, so you should be able to specify multiple values like this:
@RequestMapping(value={"", "/", "welcome"})
More Related Contents:
- What causes “java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name ‘command’ available as request attribute”?
- @RequestParam vs @PathVariable
- Spring Security : Multiple HTTP Config not working
- Redirect to an external URL from controller action in Spring MVC
- Difference between @Valid and @Validated in Spring
- How to customise the Jackson JSON mapper implicitly used by Spring Boot?
- Spring Boot Multiple Datasource
- Increase HTTP Post maxPostSize in Spring Boot
- Difference between Role and GrantedAuthority in Spring Security
- Spring MVC type conversion : PropertyEditor or Converter?
- Spring Boot JSP 404
- Spring Boot with redirecting with single page angular2
- Spring webSecurity.ignoring() doesn’t ignore custom filter
- Annotation Configuration Replacement for mvc:resources – Spring
- Spring MVC – AngularJS – File Upload – org.apache.commons.fileupload.FileUploadException
- Configure ViewResolver with Spring Boot and annotations gives No mapping found for HTTP request with URI error
- Is it possible to have empty RequestParam values use the defaultValue?
- how to send an array in url request
- Spring 3.0 making JSON response using jackson message converter
- HTTP Status 406. Spring MVC 4.0, jQuery, JSON
- How to re-create database before each test in Spring?
- Autowiring fails: Not an managed Type
- Spring Partial Update Object Data Binding
- Spring AOP Advice on Annotated Controllers
- logging with AOP in spring?
- Accessing Spring beans from a Tiles view (JSP)
- Spring REST security – Secure different URLs differently
- How to pass a session attribute as method argument (parameter) with Spring MVC
- How to import value from properties file and use it in annotation?
- Maven- No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups