0
Hello!
I would like to map a home page using springmvc
I have this method: Man
Controller
public class Treinamento {
@RequestMapping("/inicio")
public String inicio(){
return "index";
}
}
in my
web xml.
<welcome-file-list>
<welcome-file>inicio</welcome-file>
</welcome-file-list>
How to map ?
but I’d like to call from the controller rs
– adventistaam
You can map / and redirect to index in your controller then. ?
– Matheus Carvalho
That’s right. It worked. Thanks and I just needed the Return "index"
– adventistaam