feat: add zoo sample_test1
This commit is contained in:
14
build.gradle
14
build.gradle
@@ -73,22 +73,20 @@ bootJar {
|
|||||||
// formatAnnotations()
|
// formatAnnotations()
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
spotless {
|
spotless {
|
||||||
java {
|
java {
|
||||||
target 'src/**/*.java'
|
target 'src/**/*.java'
|
||||||
googleJavaFormat('1.19.2')
|
indentWithSpaces(2)
|
||||||
.aosp()
|
trimTrailingWhitespace()
|
||||||
.reflowLongStrings()
|
endWithNewline()
|
||||||
// removeUnusedImports()
|
|
||||||
importOrder()
|
importOrder()
|
||||||
|
removeUnusedImports()
|
||||||
formatAnnotations()
|
formatAnnotations()
|
||||||
|
|
||||||
// indentWithSpaces는 google-java-format에는 영향 없음
|
|
||||||
// indent control 불가 → 필요하면 google-java-format 제거해야 함
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Run spotlessCheck before build
|
// Run spotlessCheck before build
|
||||||
tasks.named('build') {
|
tasks.named('build') {
|
||||||
dependsOn 'spotlessCheck'
|
dependsOn 'spotlessCheck'
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ public class AnimalDto {
|
|||||||
@Getter
|
@Getter
|
||||||
public static class Basic {
|
public static class Basic {
|
||||||
|
|
||||||
@JsonIgnore private Long id;
|
@JsonIgnore
|
||||||
|
private Long id;
|
||||||
private String uuid;
|
private String uuid;
|
||||||
private Category category;
|
private Category category;
|
||||||
private Species species;
|
private Species species;
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ public class ZooDto {
|
|||||||
@Getter
|
@Getter
|
||||||
public static class Basic {
|
public static class Basic {
|
||||||
|
|
||||||
@JsonIgnore private Long id;
|
@JsonIgnore
|
||||||
|
private Long id;
|
||||||
private String uuid;
|
private String uuid;
|
||||||
private String name;
|
private String name;
|
||||||
private String location;
|
private String location;
|
||||||
|
|||||||
Reference in New Issue
Block a user