I have a problem with my spring-boot app, when I try to deploy and run the JAR on a Linux server it returns me a whiteLabel error whereas when I run it on my local windows computer it doesn't have any problem.
Below the error displayed in the web page (no error returned on the server side) :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Jun 26 09:03:01 UTC 2019
There was an unexpected error (type=Not Found, status=404).
/WEB-INF/jsp/advisor/home.jsp
Controller method which returns the home page
@GetMapping("home")
public String getHomePage(){
return "/advisor/home";
}
Application.properties
logging.level.root=INFO
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
I don't understand why the jar works fine on my local computer but can't find the views when run on the Linux server
问题解决了,而不是战争,我发动战争时我自己产生了一个罐子。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.