이것은 내가하고 싶은 것입니다 : 사용자가 여러 개의 html 파일을 zip 아카이브로 업로드합니다. 그 아카이브를 압축 해제하고 웹 사이트에 html 컨텐츠를 표시합니다.사용자가 업로드 한 html 파일을 포함하십시오.
그 때문에, 나는 hym 콘텐츠를 thymeleaf 페이지에 포함시키고 싶습니다. 지금까지이 시도 :
Exception processing template "dashboard": Error resolving template "/uploads/include.html", template might not exist or might not be accessible by any of the configured Template Resolvers (dashboard:40)
가 어떻게이 작업을 얻을 것입니다 : 나는 (다양한 URL로) 다음과 같은 오류가 세 가지 경우 모두에서
<div th:include="http://localhost:8181/MySpringApp/uploads/include.html"></div>
<div th:include="@{/uploads/include.html}"></div>
<div th:include="@{~/uploads/include.html}"></div>
? 나는 template
폴더에서 정적 파일을 포함하는 예제 만 보았습니다. 그러나 그것은 내가하고 싶은 것이 아닙니다.
나는 Wildfly 9를 사용하고 standalone/data
폴더에 uploads
폴더를 만들었습니다.
답장을 보내 주셔서 감사합니다. 제 질문을 수정했습니다. – user3813234