I am following a Spring MVC course on Pluralsight, and my controller pages are not resolving correctly in my local environment.
Controller Example:
`import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.Map;
@Controller
public class RegistrationController {
@GetMapping("registration")
public String getRegistration(Map<String, Object> model) {
return "registration";
}
}`
I have followed the steps exactly so far, and even repeated earlier steps in the course to get my Tomcat setup correct, but I cannot get my local server to resolve to the correct .jsp pages
I tried everything I can find on current StackOverflow documentation, as well as completely rebuilding the project to get the steps correct, but I am not getting my local server to resolve to the .jsp pages created through controllers. I have found that a lot of my previous issues were due to the tomcat.zip file having different executables to the .tar.gz file, as well as general differences in the newer version of IntelliJ compared to that used in the course videos, but I am unsure if those differences still continue to be my problem.
Kyle Rankin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.