Quellcode durchsuchen

Update README.md

Git-Leon vor 9 Jahren
Ursprung
Commit
8f3cebdee5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      README.md

+ 1
- 1
README.md Datei anzeigen

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