spring - Block specific HTTP Get Requests in Tomcat -



spring - Block specific HTTP Get Requests in Tomcat -

i have mapping url of "/" , controller

@requestmapping(value = {"/index","/"}) public modelandview displayslideshow() { homecoming new modelandview("index"); }

but because of mapping requests /... or /? or /.dfdhj serves homepage. read spring tries match best available url.

is there way prevent such mapping ?

spring http tomcat get

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -