springmvc笔记(1)
1.页面跳转方式
springmvc方式跳转,有视图解析器
spring-mvc.xml页面
先配置视图解析器
添加注解扫描器
controller页面的方法
@ResquestMapping(“/hello2”)
public string hello(){
//转发的方式
return “index”;
}
1.页面跳转方式
springmvc方式跳转,有视图解析器
spring-mvc.xml页面
先配置视图解析器
添加注解扫描器
controller页面的方法
@ResquestMapping(“/hello2”)
public string hello(){
//转发的方式
return “index”;
}