Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arjundandagi/spring-boot-quick-tricks
bunch of template codes :books: to copy paste to quickly get there :smile: :rocket:
https://github.com/arjundandagi/spring-boot-quick-tricks
spring-boot spring-boot-2 spring-boot-starter
Last synced: about 15 hours ago
JSON representation
bunch of template codes :books: to copy paste to quickly get there :smile: :rocket:
- Host: GitHub
- URL: https://github.com/arjundandagi/spring-boot-quick-tricks
- Owner: ArjunDandagi
- Created: 2020-10-03T16:57:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-04T08:03:03.000Z (over 4 years ago)
- Last Synced: 2024-11-18T23:58:57.445Z (2 months ago)
- Topics: spring-boot, spring-boot-2, spring-boot-starter
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-quick-tricks
bunch of template code to copy paste to quickly get there :)# Redirect and multiple mappings to single method
```
@GetMapping(value = {"/","/foo"})
public void handleFoo(HttpServletResponse response) throws IOException {
response.sendRedirect("/hello");
}
@GetMapping("/hello")
public String hmm(){
return "Hello";
}
```
you can also use with [RequestPath](https://stackoverflow.com/questions/22094609/multiple-mappings-to-the-same-method-of-a-controller-in-spring)