All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.codemods.VerboseRequestMappingCodemod.description.md Maven / Gradle / Ivy

There is a newer version: 0.97.3
Show newest version
This change simplifies Spring Framework annotations by making use of shortened annotations when applicable.
Code that is easy to read is easy to review, reason about, and detect bugs in.

Making use of shortcut annotations accomplishes this by removing *wordy for no reason* elements.  


Version 4.3 of Spring Framework introduced method-level variants for `@RequestMapping`.
- `@GetMapping`
- `@PutMapping`
- `@PostMapping`
- `@DeleteMapping`
- `@PatchMapping`

```diff
- @RequestMapping(value = "/example", method = RequestMethod.GET)
  ...
+ @GetMapping(value = "/example")
```





© 2015 - 2024 Weber Informatics LLC | Privacy Policy