{"action":"created","issue":{"url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/issues/1","repository_url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm","labels_url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/issues/1/comments","events_url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/issues/1/events","html_url":"https://github.com/thymeleaf/thymeleafexamples-stsm/issues/1","id":31477007,"number":1,"title":"Error resolving template “home”, template might not exist or might not be accessible by any of the configured Template Resolvers","user":{"login":"vdnhat","id":6857869,"avatar_url":"https://avatars.githubusercontent.com/u/6857869?v=3","gravatar_id":"","url":"https://api.github.com/users/vdnhat","html_url":"https://github.com/vdnhat","followers_url":"https://api.github.com/users/vdnhat/followers","following_url":"https://api.github.com/users/vdnhat/following{/other_user}","gists_url":"https://api.github.com/users/vdnhat/gists{/gist_id}","starred_url":"https://api.github.com/users/vdnhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdnhat/subscriptions","organizations_url":"https://api.github.com/users/vdnhat/orgs","repos_url":"https://api.github.com/users/vdnhat/repos","events_url":"https://api.github.com/users/vdnhat/events{/privacy}","received_events_url":"https://api.github.com/users/vdnhat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/labels/status:answered","name":"status:answered","color":"20a820"},{"url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/labels/tracker:question","name":"tracker:question","color":"9b7a04"}],"state":"closed","locked":false,"assignee":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"assignees":[{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/milestones/3","html_url":"https://github.com/thymeleaf/thymeleafexamples-stsm/milestones/No%20Milestone%20Required","labels_url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/milestones/3/labels","id":520888,"number":3,"title":"No Milestone Required","description":null,"creator":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2013-12-25T01:00:21Z","updated_at":"2014-04-14T16:25:40Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-04-14T16:15:51Z","updated_at":"2016-09-01T14:00:51Z","closed_at":"2014-04-14T16:25:40Z","body":"I'm using mvc + java HttpServlet + Thymeleaf template but it's error. File home.html has exist.\r\n\r\nMy code bellow:\r\n\r\n        ServletContextTemplateResolver templateResolver \r\n                    = new ServletContextTemplateResolver();\r\n        // XHTML is the default mode, but we will set it anyway for better understanding of code\r\n        templateResolver.setTemplateMode(\"HTML5\");\r\n        templateResolver.setPrefix(\"D:\\\\development\\\\projects\\\\fpt.eclick.framework.web.thyme\\\\views\\\\\");\r\n        templateResolver.setSuffix(\".html\");\r\n        templateResolver.setCacheTTLMs(3600000L);\r\n        TemplateEngine templateEngine = new TemplateEngine();\r\n        templateEngine.setTemplateResolver(templateResolver);\r\n        WebContext ctx = new WebContext(request, response, request.getServletContext(), request.getLocale());\r\n\r\n        try {\r\n            templateEngine.process(\"home\", ctx, response.getWriter());\r\n        } catch (IOException e) {\r\n            // TODO Auto-generated catch block\r\n            e.printStackTrace();\r\n        }\r\n        response.setContentType(\"text/html;charset=UTF-8\");\r\n        response.setHeader(\"Pragma\", \"no-cache\");\r\n        response.setHeader(\"Cache-Control\", \"no-cache\");\r\n        response.setDateHeader(\"Expires\", 1000);\r\nWith Freemarker I used similar to and it's well done.\r\n\r\nImage code attach in file\r\n![done](https://cloud.githubusercontent.com/assets/6857869/2697577/0612b3d6-c3f0-11e3-825a-6b628096449d.png)\r\n\r\n\r\nThank you very much"},"comment":{"url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/issues/comments/244087863","html_url":"https://github.com/thymeleaf/thymeleafexamples-stsm/issues/1#issuecomment-244087863","issue_url":"https://api.github.com/repos/thymeleaf/thymeleafexamples-stsm/issues/1","id":244087863,"user":{"login":"lqjack","id":4533570,"avatar_url":"https://avatars.githubusercontent.com/u/4533570?v=3","gravatar_id":"","url":"https://api.github.com/users/lqjack","html_url":"https://github.com/lqjack","followers_url":"https://api.github.com/users/lqjack/followers","following_url":"https://api.github.com/users/lqjack/following{/other_user}","gists_url":"https://api.github.com/users/lqjack/gists{/gist_id}","starred_url":"https://api.github.com/users/lqjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lqjack/subscriptions","organizations_url":"https://api.github.com/users/lqjack/orgs","repos_url":"https://api.github.com/users/lqjack/repos","events_url":"https://api.github.com/users/lqjack/events{/privacy}","received_events_url":"https://api.github.com/users/lqjack/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T14:00:51Z","updated_at":"2016-09-01T14:00:51Z","body":"hi,how to fill the templateResolver.setPrefix ,thanks a lot."}}
{"actor":{"display_login":"lqjack"}}