java - Spring 4 with Annotation Tomcat Deployment 404 Error -
i using spring 4, servlet 3 api , tomcat 8 project. have problem deployment. trying deploy war package in vps. using intellij idea. i coppied war /opt/tomcat/webapps path. can see war tomcat's apps page. when try browse url 404 not found error. i using spring annotation , empty web.xml , using spring security. wepappinitializer.java public class wepappinitializer implements webapplicationinitializer { @override public void onstartup(final servletcontext servletcontext) throws servletexception { annotationconfigwebapplicationcontext ctx = new annotationconfigwebapplicationcontext(); ctx.register(webconfig.class); ctx.setservletcontext(servletcontext); servletregistration.dynamic dynamic = servletcontext.addservlet("dispatcher", new dispatcherservlet(ctx)); dynamic.addmapping("/acentecilik"); dynamic.setloadonstartup(1); } } webconfig.java @configuration @enablewebmvc @enabletransactionmanagement @componentscan("c...