Bläddra i källkod

Update README.md

Git-Leon 7 år sedan
förälder
incheckning
8f3cebdee5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      README.md

+ 1
- 1
README.md Visa fil

@@ -193,7 +193,7 @@ public ResponseEntity<?> getPoll(@PathVariable Long pollId) {
193 193
 * The code snippet below enables us to update a poll.
194 194
 
195 195
 ```java
196
-RequestMapping(value="/polls/{pollId}", method=RequestMethod.PUT)
196
+@RequestMapping(value="/polls/{pollId}", method=RequestMethod.PUT)
197 197
 public ResponseEntity<?> updatePoll(@RequestBody Poll poll, @PathVariable Long pollId) {
198 198
         // Save the entity
199 199
         Poll p = pollRepository.save(poll);