Skip to content

Commit

Permalink
fix template path error about that "
Browse files Browse the repository at this point in the history
Error resolving template "login", template might not exist or might not be accessible by any of the configured Template
Resolvers."
  • Loading branch information
changman committed Feb 23, 2019
1 parent 4bb8fa0 commit 6b36eaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spring.jpa.show=true
# ThymeLeaf
spring.thymeleaf.cache=false
spring.thymeleaf.check-template-location=true
spring.thymeleaf.prefix=file:./src/main/resources/templates/
spring.thymeleaf.prefix=classpath:/templates/

spring.session.store-type=none
flyway.baseline-on-migrate=true
4 changes: 2 additions & 2 deletions src/main/resources/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
<div class="wrapper">

<header class="main-header">
<div th:replace="/fragments/header"></div>
<div th:replace="fragments/header"></div>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<div th:replace="/fragments/mainsidebar"></div>
<div th:replace="fragments/mainsidebar"></div>
</aside>

<!-- Content Wrapper. Contains page content -->
Expand Down

0 comments on commit 6b36eaa

Please sign in to comment.