摘要:
1.导入jar包 除此之外,还需要 以上是被要求最少jar包 2.配置web.xml 配置servlet,SpringMVC是通过servlet作为入口与struts2以filter作为入口不同! 3.创建一个Helloworld类 4.创建springmvc.xml配置文件并且配置注解扫描与视图解 阅读全文
摘要:
阅读全文
摘要:
http://localhost:8080/SpringMVC/hello/45 id就被赋值为45 阅读全文
摘要:
阅读全文
摘要:
@RequestMapping(value="/hello",method=RequestMethod.POST) method=RequestMethod.POST提供了请求的要求方法;method是一个集合,为一个时,可以直接写单个枚举。 参数param,表示必须包含参数param !param 阅读全文
摘要:
访问路径url应为http://localhost:8080/SpringMVC/zhangpn/hello 与struts2中的包的命名空间和action的名称规则类似 阅读全文
摘要:
4.0.0 com.crm.zhangpn crm 0.0.1-SNAPSHOT war crm Maven Webapp http://www.example.com UTF-8 1.7 1.7 ... 阅读全文
摘要:
1 package com.zhangpn.aspect; 2 3 import org.aspectj.lang.ProceedingJoinPoint; 4 import org.aspectj.lang.annotation.After; 5 import org.aspectj.lang.a 阅读全文