Skip to content

배포 단계에서 에러 #85

@BlueHarmel

Description

@BlueHarmel

로컬 환경에서 잘 인식하던 html 파일들을 서버 환경에서 인식하지 못해 500 Internal Server error 발생 (파일 경로 : src/main/resources/templates/site/main.html)

  1. 기존에 컨트롤러에서 “/site/main” 을 반환해줬는데, 따로 prefix를 지정해주지 않아 오류가 발생한것으로 추정
  2. application.yml 에서 Spring.thymeleaf.prefix를 prefix: classpath:/templates/ 로 설정 후, 컨트롤러에서 반환해주는 경로들의 맨앞에 있는 “/”를 제거 (ex : /site/main ⇒ site/main)
  3. 정상적으로 동작하는 것을 확인

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions