Bael-3395: Spring optional path variables (#8106)

* initial test cases

* changes in @requestMapping
This commit is contained in:
M-Abdelbaset
2019-11-14 23:12:22 +02:00
committed by maibin
parent 54718d11a6
commit 274aafe823
11 changed files with 435 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.baeldung.model;
public class Article {
public static final Article DEFAULT_ARTICLE = new Article(12);
private Integer id;
public Article(Integer articleId) {
this.id = articleId;
}
public Integer getId() {
return id;
}
@Override
public String toString() {
return "Article [id=" + id + "]";
}
}