浏览代码

Update README.md

Git-Leon 7 年前
父节点
当前提交
8f3cebdee5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      README.md

+ 1
- 1
README.md 查看文件

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