Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
  Yaswanth Avula
8,079 PointsError resolving template "home", template might not exist or might not be accessible by any of the configured Template R
GifController package com.yash.giflib.controller;
import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody;
/**
- Created by yaswanth avula on 10/12/2017. */
 
@Controller public class GifController { @RequestMapping(value = "/") public String listGifs() { return "home";
}
}
home.html
<!DOCTYPE html> <html lang="en"> <meta charset="UTF-8"/>
<head> <title>giflib | Home</title> </head> <body> <h1>Home</h1> <P>this is my first gif lib</P> </body> </html>
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Oct 12 14:47:10 CDT 2017 There was an unexpected error (type=Internal Server Error, status=500). Error resolving template "home", template might not exist or might not be accessible by any of the configured Template Resolvers
1 Answer
Mihai Craciun
13,520 Pointsthis error might tell you that the template is not found because maybe you didn't place it right or you didn't specified the full URI of the template