
이 내용은 스프링 공식 레퍼런스의 7.1.6. Welcome Page 항목의 내용을 참고하여 작성하였습니다. 1. Welcome Page 스프링 부트는 Welcome Page를 두 가지 방법으로 제공한다. 첫 번째 방법은 static content 공간에 index.html이라는 html 파일을 만들면 된다. 즉 프로젝트 생성 시 기본적으로 있는 resource 폴더에 있는 static 폴더에 index.html 파일을 읽게 된다. 실행 시 다음과 같이 잘 나오는 것을 확인할 수 있다. 두 번째 방법은 templates 폴더에 index.html을 만드는 경우이다. html 파일만 아래 파일로 옮겨주었다. 결과는 마찬가지로 잘 작동한다. 참고로 두 가지 방법은 우선순위가 있는데, 첫 번째 static 폴..

단순히 현재 저장하고 있는 어떤 객체의 목록을 불러오는 api를 만들고, 호출해보니 Postman에서 이런 에러가 떴다. 참고로 호출된 객체는 다음과 같다. @Entity @Table(name = "orders") @Getter @Setter public class Order { @Id @GeneratedValue @Column(name = "order_id") private Long id; @ManyToOne(fetch = LAZY) @JoinColumn(name = "member_id") private Member member; } Order라는 객체 목록을 불러왔고, 이 안에는 분명 "ByteBuddyInterceptor"라는 자료형이 없는데 (다른 데에도 선언하지 않았다.) 왜 이런 타입이 맞지 ..