瀏覽代碼

Update README.md

Git-Leon 7 年之前
父節點
當前提交
8f3cebdee5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      README.md

+ 1
- 1
README.md 查看文件

@@ -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);