`
hzd822
  • 浏览: 7337 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
spring mvc 基本应用,有页面跳转,ajax ,拦截器,页面标签,json传递。
1.找到 context.xml ,这个文件在 tomcat5/conf/ 下, 2.打开文件,在 <Context></Context> 这个标记添加属性: antiJARLocking="true" antiResourceLocking="true" 3.当然是保存,然后重启 tomcat 就可以了!!
一个非常简单基础的问题,但是搞的半天,看来有时候基础还得补补。。 在Eclipse下建一个动态web项目,WebContent下默认两个目录META-INF和WEB-INF,WebContent\WEB-INF\jsp\login.jsp想导入js的话,js文件必须放在WebContent根目录下才行(例如:WebContent\jquery-1.4.2.min.js)。如果放在WEB-INF是读不到的。导入的时候加入项目名(WebContent\jquery-1.4.2.min.js这么放的话导入时应该是<script src="/demo/jquery-1.4.2.min ...
可以基于注解的拦截器 http://ch-space.iteye.com/blog/501081
一个非常好的spring mvc 注解驱动学习帖子 http://www.ibm.com/developerworks/cn/java/j-lo-spring25-mvc/
配置 <aop:config> <aop:pointcut id="manPointcut" expression="execution(public * service.LoginInfo.*(..))" /> <aop:aspect id="beforeExample" ref="testInterceptor"> <aop:before pointcut-ref="manPointc ...
Global site tag (gtag.js) - Google Analytics