Springfox - PR review fixes

This commit is contained in:
Anshul BANSAL 2019-12-01 13:08:53 +02:00
parent c7e8eb29ef
commit 848abce396
2 changed files with 21 additions and 15 deletions

View File

@ -50,8 +50,14 @@ public class SpringfoxApplication {
} }
private ApiInfo apiInfo() { private ApiInfo apiInfo() {
return new ApiInfo("Springfox API specification", "User REST and Spring Data APIs", return new ApiInfo("Springfox API specification",
"", "", null, "License of API", "API license URL", Collections.emptyList()); "User REST and Spring Data APIs",
"",
"",
null,
"License of API",
"API license URL",
Collections.emptyList());
} }
@Bean @Bean

View File

@ -8,7 +8,7 @@ import javax.validation.constraints.NotNull;
import javax.persistence.Entity; import javax.persistence.Entity;
@Entity @Entity
public class User{ public class User {
@Id @Id
private Long id; private Long id;
@ -55,4 +55,4 @@ public class User{
this.age = age; this.age = age;
} }
} }