Skip to content

Commit

Permalink
Upgrade Spring Boot to latest. Fix related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-punko committed Jun 8, 2024
1 parent 9034aa9 commit c0280aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<java.version>17</java.version>

<spring-boot.version>3.1.7</spring-boot.version>
<spring-boot.version>3.3.0</spring-boot.version>
<mapstruct.version>1.5.5.Final</mapstruct.version>
<lombok.version>1.18.30</lombok.version>

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/by/andd3dfx/controllers/ArticleController.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public ArticleDto createArticle(
public ArticleDto readArticle(
@ApiParam("Article's id")
@NotNull
@PathVariable Long id
@PathVariable("id") Long id
) {
return articleService.get(id);
}
Expand All @@ -75,7 +75,7 @@ public ArticleDto readArticle(
public void updateArticle(
@ApiParam("Article's id")
@NotNull
@PathVariable Long id,
@PathVariable("id") Long id,
@ApiParam("Updated fields of article")
@Validated
@RequestBody ArticleUpdateDto articleUpdateDto
Expand All @@ -94,7 +94,7 @@ public void updateArticle(
public void deleteArticle(
@ApiParam("Article's id")
@NotNull
@PathVariable Long id
@PathVariable("id") Long id
) {
articleService.delete(id);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class AuthorController {
@GetMapping("/{id}")
public AuthorDto readAuthor(
@ApiParam("Author's id")
@NotNull @PathVariable Long id) {
@NotNull @PathVariable("id") Long id) {
return authorService.get(id);
}

Expand Down

0 comments on commit c0280aa

Please sign in to comment.