• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Spring 게시판 index.html 위치

index.html 위치

4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 글쓴이
  • #129494

    Kitkat
    참가자
    집에서 할 때는 static 폴더 안에 index.html을 작성해서 작업하고 github에 올린 뒤,
    다른 컴퓨터에서 받아와 작업을 진행을 하니 localhost:8080에서 
    Whitelabel Error Page
    There was an unexpected error (type=Internal Server Error, status=500).
    Error resolving template [index.html], template might not exist or might not be accessible by any of the configured Template Resolvers
    org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index.html], template might not exist or might not be accessible by any of the configured Template Resolvers
    ...
    라는 메세지가 출력되며 index.html을 불러오지 못하더라구요
    그래서 혹시나 싶어 index.html을 static폴더 말고 templates 폴더로 옮겼더니 정상적으로 작동합니다.
    이유가 왜일까요? static에 두어야하는게 맞지 않나요?
    #129496

    codingapple
    키 마스터
    타임리프 설치하면 기본경로가 templates폴더가 되어서 그런듯요
    #129497

    Kitkat
    참가자
    그럼 따로 기본경로 바꿔주거나 할 필요 없이 templates에 두고 작업 계속하면 될까요?
    #129551

    codingapple
    키 마스터
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠