I have successfully deployed my spring boot sample web application to App Engine Standard (Java 8). This applications has some jsp pages. But i am getting blank page instead of my orginal page. And also not getting any errors.
My index page controller is
@RequestMapping(value = "/", method = RequestMethod.GET)
public String showIndexPage(Model model,HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException
{
return "index";
}
index.jsp
<!DOCTYPE html>
<html lang="en">
<head>
<title>Index</title>
</head>
<body>
<p>Welcome</p>
</body>
</html>
application.propertoes
spring.mvc.view.prefix=/WEB-INF/views/
spring.mvc.view.suffix=.jsp
This is the documentation i have done.
Any suggession?
EDIT
But /hello is working fine
@RestController
public class HelloworldController {
@GetMapping("/hello")
public String hello() {
return "Hello world - springboot-appengine-standard!";
}
}
