Skip to content

Commit 6141064

Browse files
committed
fix(#64swagger) : 누락 커밋 푸쉬
1 parent 6871068 commit 6141064

18 files changed

Lines changed: 686 additions & 49 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ out/
3939
### Environment variables ###
4040
.env
4141
*.env
42+
.env

build.gradle

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.4.5'
3+
id 'org.springframework.boot' version '3.2.5'//스웨거로 인해 버전 낮춤
44
id 'io.spring.dependency-management' version '1.1.7'
55
}
66

@@ -13,6 +13,10 @@ java {
1313
}
1414
}
1515

16+
ext {
17+
queryDslVersion = "5.0.0"
18+
}
19+
1620
configurations {
1721
compileOnly {
1822
extendsFrom annotationProcessor
@@ -21,29 +25,68 @@ configurations {
2125

2226
repositories {
2327
mavenCentral()
28+
29+
// springdoc 2.5.0은 여기서 제공됨
30+
maven { url 'https://repo.spring.io/release' }
2431
}
2532

2633
dependencies {
34+
// Spring Boot
2735
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
28-
implementation 'org.springframework.boot:spring-boot-starter-security'
36+
implementation 'org.springframework.boot:spring-boot-starter-security'
2937
implementation 'org.springframework.boot:spring-boot-starter-web'
3038
implementation 'org.springframework.boot:spring-boot-starter-validation'
39+
40+
// JWT
3141
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
3242
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
33-
runtimeOnly('io.jsonwebtoken:jjwt-jackson:0.11.5')
43+
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
44+
45+
// DB
3446
runtimeOnly 'com.h2database:h2'
3547
runtimeOnly 'com.mysql:mysql-connector-j'
48+
49+
// AWS
50+
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.538'
51+
52+
// QueryDSL
53+
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}:jakarta"
54+
annotationProcessor "com.querydsl:querydsl-apt:${queryDslVersion}:jakarta"
55+
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
56+
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
57+
58+
// Swagger (springdoc)
59+
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0'
60+
61+
// Lombok
3662
compileOnly 'org.projectlombok:lombok'
3763
annotationProcessor 'org.projectlombok:lombok'
64+
65+
// Test
3866
testImplementation 'org.springframework.boot:spring-boot-starter-test'
3967
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
40-
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.538'
4168
}
4269

4370
tasks.named('test') {
4471
useJUnitPlatform()
4572
}
4673

74+
// WAR 파일 안 만들게 설정
4775
jar {
4876
enabled = false
49-
}
77+
}
78+
79+
// QueryDSL 설정
80+
def querydslDir = "src/main/generated"
81+
82+
sourceSets {
83+
main {
84+
java {
85+
srcDirs += querydslDir
86+
}
87+
}
88+
}
89+
90+
tasks.withType(JavaCompile).configureEach {
91+
options.annotationProcessorGeneratedSourcesDirectory = file(querydslDir)
92+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
package com.example.FixLog.domain.bookmark;
2+
3+
import static com.querydsl.core.types.PathMetadataFactory.*;
4+
5+
import com.querydsl.core.types.dsl.*;
6+
7+
import com.querydsl.core.types.PathMetadata;
8+
import javax.annotation.processing.Generated;
9+
import com.querydsl.core.types.Path;
10+
import com.querydsl.core.types.dsl.PathInits;
11+
12+
13+
/**
14+
* QBookmark is a Querydsl query type for Bookmark
15+
*/
16+
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
17+
public class QBookmark extends EntityPathBase<Bookmark> {
18+
19+
private static final long serialVersionUID = -975112590L;
20+
21+
private static final PathInits INITS = PathInits.DIRECT2;
22+
23+
public static final QBookmark bookmark = new QBookmark("bookmark");
24+
25+
public final NumberPath<Long> bookmarkId = createNumber("bookmarkId", Long.class);
26+
27+
public final QBookmarkFolder folderId;
28+
29+
public final BooleanPath isMarked = createBoolean("isMarked");
30+
31+
public final com.example.FixLog.domain.post.QPost postId;
32+
33+
public QBookmark(String variable) {
34+
this(Bookmark.class, forVariable(variable), INITS);
35+
}
36+
37+
public QBookmark(Path<? extends Bookmark> path) {
38+
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
39+
}
40+
41+
public QBookmark(PathMetadata metadata) {
42+
this(metadata, PathInits.getFor(metadata, INITS));
43+
}
44+
45+
public QBookmark(PathMetadata metadata, PathInits inits) {
46+
this(Bookmark.class, metadata, inits);
47+
}
48+
49+
public QBookmark(Class<? extends Bookmark> type, PathMetadata metadata, PathInits inits) {
50+
super(type, metadata, inits);
51+
this.folderId = inits.isInitialized("folderId") ? new QBookmarkFolder(forProperty("folderId"), inits.get("folderId")) : null;
52+
this.postId = inits.isInitialized("postId") ? new com.example.FixLog.domain.post.QPost(forProperty("postId"), inits.get("postId")) : null;
53+
}
54+
55+
}
56+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package com.example.FixLog.domain.bookmark;
2+
3+
import static com.querydsl.core.types.PathMetadataFactory.*;
4+
5+
import com.querydsl.core.types.dsl.*;
6+
7+
import com.querydsl.core.types.PathMetadata;
8+
import javax.annotation.processing.Generated;
9+
import com.querydsl.core.types.Path;
10+
import com.querydsl.core.types.dsl.PathInits;
11+
12+
13+
/**
14+
* QBookmarkFolder is a Querydsl query type for BookmarkFolder
15+
*/
16+
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
17+
public class QBookmarkFolder extends EntityPathBase<BookmarkFolder> {
18+
19+
private static final long serialVersionUID = 655942016L;
20+
21+
private static final PathInits INITS = PathInits.DIRECT2;
22+
23+
public static final QBookmarkFolder bookmarkFolder = new QBookmarkFolder("bookmarkFolder");
24+
25+
public final ListPath<Bookmark, QBookmark> bookmarks = this.<Bookmark, QBookmark>createList("bookmarks", Bookmark.class, QBookmark.class, PathInits.DIRECT2);
26+
27+
public final NumberPath<Long> folderId = createNumber("folderId", Long.class);
28+
29+
public final StringPath folderName = createString("folderName");
30+
31+
public final com.example.FixLog.domain.member.QMember userId;
32+
33+
public QBookmarkFolder(String variable) {
34+
this(BookmarkFolder.class, forVariable(variable), INITS);
35+
}
36+
37+
public QBookmarkFolder(Path<? extends BookmarkFolder> path) {
38+
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
39+
}
40+
41+
public QBookmarkFolder(PathMetadata metadata) {
42+
this(metadata, PathInits.getFor(metadata, INITS));
43+
}
44+
45+
public QBookmarkFolder(PathMetadata metadata, PathInits inits) {
46+
this(BookmarkFolder.class, metadata, inits);
47+
}
48+
49+
public QBookmarkFolder(Class<? extends BookmarkFolder> type, PathMetadata metadata, PathInits inits) {
50+
super(type, metadata, inits);
51+
this.userId = inits.isInitialized("userId") ? new com.example.FixLog.domain.member.QMember(forProperty("userId"), inits.get("userId")) : null;
52+
}
53+
54+
}
55+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package com.example.FixLog.domain.follow;
2+
3+
import static com.querydsl.core.types.PathMetadataFactory.*;
4+
5+
import com.querydsl.core.types.dsl.*;
6+
7+
import com.querydsl.core.types.PathMetadata;
8+
import javax.annotation.processing.Generated;
9+
import com.querydsl.core.types.Path;
10+
import com.querydsl.core.types.dsl.PathInits;
11+
12+
13+
/**
14+
* QFollow is a Querydsl query type for Follow
15+
*/
16+
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
17+
public class QFollow extends EntityPathBase<Follow> {
18+
19+
private static final long serialVersionUID = 1281338898L;
20+
21+
private static final PathInits INITS = PathInits.DIRECT2;
22+
23+
public static final QFollow follow = new QFollow("follow");
24+
25+
public final com.example.FixLog.domain.member.QMember followerId;
26+
27+
public final NumberPath<Long> followId = createNumber("followId", Long.class);
28+
29+
public final com.example.FixLog.domain.member.QMember followingId;
30+
31+
public QFollow(String variable) {
32+
this(Follow.class, forVariable(variable), INITS);
33+
}
34+
35+
public QFollow(Path<? extends Follow> path) {
36+
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
37+
}
38+
39+
public QFollow(PathMetadata metadata) {
40+
this(metadata, PathInits.getFor(metadata, INITS));
41+
}
42+
43+
public QFollow(PathMetadata metadata, PathInits inits) {
44+
this(Follow.class, metadata, inits);
45+
}
46+
47+
public QFollow(Class<? extends Follow> type, PathMetadata metadata, PathInits inits) {
48+
super(type, metadata, inits);
49+
this.followerId = inits.isInitialized("followerId") ? new com.example.FixLog.domain.member.QMember(forProperty("followerId"), inits.get("followerId")) : null;
50+
this.followingId = inits.isInitialized("followingId") ? new com.example.FixLog.domain.member.QMember(forProperty("followingId"), inits.get("followingId")) : null;
51+
}
52+
53+
}
54+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
package com.example.FixLog.domain.fork;
2+
3+
import static com.querydsl.core.types.PathMetadataFactory.*;
4+
5+
import com.querydsl.core.types.dsl.*;
6+
7+
import com.querydsl.core.types.PathMetadata;
8+
import javax.annotation.processing.Generated;
9+
import com.querydsl.core.types.Path;
10+
import com.querydsl.core.types.dsl.PathInits;
11+
12+
13+
/**
14+
* QFork is a Querydsl query type for Fork
15+
*/
16+
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
17+
public class QFork extends EntityPathBase<Fork> {
18+
19+
private static final long serialVersionUID = 1327242738L;
20+
21+
private static final PathInits INITS = PathInits.DIRECT2;
22+
23+
public static final QFork fork = new QFork("fork");
24+
25+
public final com.example.FixLog.domain.post.QPost forkedPostId;
26+
27+
public final NumberPath<Long> forkId = createNumber("forkId", Long.class);
28+
29+
public final com.example.FixLog.domain.post.QPost originalPostId;
30+
31+
public final com.example.FixLog.domain.member.QMember userId;
32+
33+
public QFork(String variable) {
34+
this(Fork.class, forVariable(variable), INITS);
35+
}
36+
37+
public QFork(Path<? extends Fork> path) {
38+
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
39+
}
40+
41+
public QFork(PathMetadata metadata) {
42+
this(metadata, PathInits.getFor(metadata, INITS));
43+
}
44+
45+
public QFork(PathMetadata metadata, PathInits inits) {
46+
this(Fork.class, metadata, inits);
47+
}
48+
49+
public QFork(Class<? extends Fork> type, PathMetadata metadata, PathInits inits) {
50+
super(type, metadata, inits);
51+
this.forkedPostId = inits.isInitialized("forkedPostId") ? new com.example.FixLog.domain.post.QPost(forProperty("forkedPostId"), inits.get("forkedPostId")) : null;
52+
this.originalPostId = inits.isInitialized("originalPostId") ? new com.example.FixLog.domain.post.QPost(forProperty("originalPostId"), inits.get("originalPostId")) : null;
53+
this.userId = inits.isInitialized("userId") ? new com.example.FixLog.domain.member.QMember(forProperty("userId"), inits.get("userId")) : null;
54+
}
55+
56+
}
57+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
package com.example.FixLog.domain.like;
2+
3+
import static com.querydsl.core.types.PathMetadataFactory.*;
4+
5+
import com.querydsl.core.types.dsl.*;
6+
7+
import com.querydsl.core.types.PathMetadata;
8+
import javax.annotation.processing.Generated;
9+
import com.querydsl.core.types.Path;
10+
import com.querydsl.core.types.dsl.PathInits;
11+
12+
13+
/**
14+
* QPostLike is a Querydsl query type for PostLike
15+
*/
16+
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
17+
public class QPostLike extends EntityPathBase<PostLike> {
18+
19+
private static final long serialVersionUID = -1255529902L;
20+
21+
private static final PathInits INITS = PathInits.DIRECT2;
22+
23+
public static final QPostLike postLike = new QPostLike("postLike");
24+
25+
public final BooleanPath isLiked = createBoolean("isLiked");
26+
27+
public final NumberPath<Long> likeId = createNumber("likeId", Long.class);
28+
29+
public final com.example.FixLog.domain.post.QPost postId;
30+
31+
public final com.example.FixLog.domain.member.QMember userId;
32+
33+
public QPostLike(String variable) {
34+
this(PostLike.class, forVariable(variable), INITS);
35+
}
36+
37+
public QPostLike(Path<? extends PostLike> path) {
38+
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
39+
}
40+
41+
public QPostLike(PathMetadata metadata) {
42+
this(metadata, PathInits.getFor(metadata, INITS));
43+
}
44+
45+
public QPostLike(PathMetadata metadata, PathInits inits) {
46+
this(PostLike.class, metadata, inits);
47+
}
48+
49+
public QPostLike(Class<? extends PostLike> type, PathMetadata metadata, PathInits inits) {
50+
super(type, metadata, inits);
51+
this.postId = inits.isInitialized("postId") ? new com.example.FixLog.domain.post.QPost(forProperty("postId"), inits.get("postId")) : null;
52+
this.userId = inits.isInitialized("userId") ? new com.example.FixLog.domain.member.QMember(forProperty("userId"), inits.get("userId")) : null;
53+
}
54+
55+
}
56+

0 commit comments

Comments
 (0)