Skip to content

Commit 0d7187a

Browse files
authored
Merge pull request #112 from FixLog/fix#105-search-cw
[FIX] 검색 결과 썸네일 수정
2 parents 836d525 + 113392f commit 0d7187a

File tree

4 files changed

+28
-24
lines changed

4 files changed

+28
-24
lines changed

src/main/java/com/example/FixLog/domain/post/Post.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,6 @@ public void changeExtraContent(String newExtraContent){
119119
public void updateEditedAt(LocalDateTime newLocalDateTime){
120120
this.editedAt = newLocalDateTime;
121121
}
122+
123+
122124
}

src/main/java/com/example/FixLog/dto/search/SearchPostDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class SearchPostDto {
1212
private Long postId;
1313
private String title;
1414
private String content;
15+
private String coverImageUrl;
1516
private String writerNickname;
1617
private String writerProfileImage;
1718
private List<String> tags; // 예: [“spring-boot”, “jwt”, “java”]

src/main/java/com/example/FixLog/repository/post/PostRepositoryImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public Page<SearchPostDto> searchByKeywordAndTags(String keyword, List<String> t
7171
.postId(p.getPostId())
7272
.title(p.getPostTitle())
7373
.content(p.getProblem().length() > 200 ? p.getProblem().substring(0, 200) + "…" : p.getProblem())
74+
.coverImageUrl(p.getCoverImage())
7475
.writerNickname(p.getUserId().getNickname())
7576
.writerProfileImage(p.getUserId().getProfileImageUrl())
7677
.tags(p.getPostTags().stream().map(pt -> pt.getTagId().getTagName()).toList())

src/main/resources/application.properties

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ spring.application.name=FixLog
2828
## Spring Security
2929
#logging.level.org.springframework.security=DEBUG
3030

31-
##### [PROD] #####
32-
server.port=8083
33-
34-
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
35-
spring.datasource.url=${MYSQL_URL}
36-
spring.datasource.username=${MYSQL_USERNAME}
37-
spring.datasource.password=${MYSQL_PASSWORD}
38-
39-
spring.jpa.hibernate.ddl-auto=update
40-
spring.jpa.show-sql=true
41-
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
42-
spring.jpa.properties.hibernate.format_sql=true
43-
44-
cloud.aws.credentials.access-key=${AWS_ACCESS_KEY_ID}
45-
cloud.aws.credentials.secret-key=${AWS_SECRET_ACCESS_KEY}
46-
cloud.aws.region.static=${AWS_REGION}
47-
cloud.aws.s3.bucket=${AWS_S3_BUCKET}
48-
49-
jwt.secret=${JWT_KEY}
50-
51-
logging.level.root=INFO
52-
logging.level.com.example.FixLog=DEBUG
53-
logging.level.org.springframework.web.servlet.DispatcherServlet=DEBUG
54-
logging.file.name=logs/app.log
31+
###### [PROD] #####
32+
#server.port=8083
33+
#
34+
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
35+
#spring.datasource.url=${MYSQL_URL}
36+
#spring.datasource.username=${MYSQL_USERNAME}
37+
#spring.datasource.password=${MYSQL_PASSWORD}
38+
#
39+
#spring.jpa.hibernate.ddl-auto=update
40+
#spring.jpa.show-sql=true
41+
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
42+
#spring.jpa.properties.hibernate.format_sql=true
43+
#
44+
#cloud.aws.credentials.access-key=${AWS_ACCESS_KEY_ID}
45+
#cloud.aws.credentials.secret-key=${AWS_SECRET_ACCESS_KEY}
46+
#cloud.aws.region.static=${AWS_REGION}
47+
#cloud.aws.s3.bucket=${AWS_S3_BUCKET}
48+
#
49+
#jwt.secret=${JWT_KEY}
50+
#
51+
#logging.level.root=INFO
52+
#logging.level.com.example.FixLog=DEBUG
53+
#logging.level.org.springframework.web.servlet.DispatcherServlet=DEBUG
54+
#logging.file.name=logs/app.log

0 commit comments

Comments
 (0)