260615_03_ENH: id 값 고치면서 생긴 사이드 이펙트 제거
This commit is contained in:
@@ -28,7 +28,7 @@ public class TShortUrlEntity {
|
|||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "id", nullable = false, updatable = false)
|
@Column(name = "short_url_idx", nullable = false, updatable = false)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Size(max = 8)
|
@Size(max = 8)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import com.kri.shorturl.persistence.entity.TShortUrlEntity;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
public interface ShortUrlRepository extends JpaRepository<TShortUrlEntity, String> {
|
public interface ShortUrlRepository extends JpaRepository<TShortUrlEntity, Long> {
|
||||||
|
|
||||||
Optional<TShortUrlEntity> findByShortCode(String shortCode);
|
Optional<TShortUrlEntity> findByShortCode(String shortCode);
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ spring:
|
|||||||
multipart:
|
multipart:
|
||||||
max-file-size: 100MB
|
max-file-size: 100MB
|
||||||
max-request-size: 100MB
|
max-request-size: 100MB
|
||||||
|
profiles:
|
||||||
|
# 아무 설정 없을 때 기본으로 쓸 프로파일
|
||||||
|
default: local
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
file:
|
file:
|
||||||
|
|||||||
Reference in New Issue
Block a user