On Jelastic, the demo server has deployed its Java project, but how it didn’t try to start it returns a 404
error, and on the local one, is everything okay?
on web.xml <url-pattern>/test</url-pattern>
On Jelastic, when unfolded, gave the same name test
and when I run it returns 404
error
web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/test</url-pattern> </filter-mapping> </web-app>
Servlet:
@Controller @RequestMapping("/test") public class MainController { @RequestMapping(method = RequestMethod.GET) public String start(Model model){ return "index"; } }