Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/back/domain/file/entity/EntityType.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.back.domain.file.entity;

public enum EntityType {
POST, AVATAR, PROFILE
POST, PROFILE, STUDY_ROOM
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
import com.back.domain.file.entity.EntityType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface AttachmentMappingRepository extends JpaRepository<AttachmentMapping, Long> {
Optional<AttachmentMapping> findByEntityTypeAndEntityId(EntityType entityType, Long entityID);
}
List<AttachmentMapping> findByEntityTypeAndEntityId(EntityType entityType, Long entityID);

void deleteAllByEntityTypeAndEntityId(EntityType entityType, Long entityId);
}
11 changes: 11 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ spring:
user-info-uri: https://api.github.com/user
user-name-attribute: id

servlet:
multipart:
max-file-size: 10MB # 업로드할 수 있는 개별 파일의 최대 크기
max-request-size: 10MB # 한 요청의 최대 허용 크기

mail:
host: ${EMAIL_HOST} # Gmail SMTP 서버 (운영 환경에서는 AWS SES 등으로 변경 권장)
port: ${EMAIL_PORT}
Expand All @@ -86,6 +91,12 @@ spring:
starttls:
enable: true

lifecycle:
timeout-per-shutdown-phase: 30s # 종료 대기 시간

server:
shutdown: graceful # graceful shutdown 활성화

springdoc:
default-produces-media-type: application/json;charset=UTF-8

Expand Down