소스 검색

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