Hi,
How can I easily map my webroot/webapp to simply / instead of subdir? I want this for host localhost.
I want this to work both with sts toolsuite and when running the server normally.
Hi,
How can I easily map my webroot/webapp to simply / instead of subdir? I want this for host localhost.
I want this to work both with sts toolsuite and when running the server normally.
Use /, rather than /*, in your web.xml url-pattern:
Code:<servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>springmvc</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
James Douglas
http://www.earldouglas.com/