Skip to content

Commit 16aab05

Browse files
committed
pom.xml is updated. Added repackage. Rename method in BookRestController.
1 parent 822714e commit 16aab05

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,15 @@
6464
<plugin>
6565
<groupId>org.springframework.boot</groupId>
6666
<artifactId>spring-boot-maven-plugin</artifactId>
67+
<executions>
68+
<execution>
69+
<goals>
70+
<goal>repackage</goal>
71+
</goals>
72+
</execution>
73+
</executions>
6774
</plugin>
6875
</plugins>
6976
</build>
7077

71-
</project>
78+
</project>

src/main/java/com/kaluzny/web/BookRestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public ResponseEntity<Collection<Book>> findBookWithName(@RequestParam(value = "
4949
@RequestMapping(
5050
value = "/{id}",
5151
method = RequestMethod.PUT)
52-
public ResponseEntity<Book> updateUserFromDB(@PathVariable("id") long id, @RequestBody Book book) {
52+
public ResponseEntity<Book> updateBookFromDB(@PathVariable("id") long id, @RequestBody Book book) {
5353

5454
Book currentBook = repository.findOne(id);
5555
currentBook.setName(book.getName());

0 commit comments

Comments
 (0)