码迷,mamicode.com
首页 > 编程语言 > 详细

spring中action和url的对应关系

时间:2015-01-12 22:11:51      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

 

  • spring 中, action和url的对应关系
     技术分享 技术分享
      在web.xml中,这样配置:
          <servlet-mapping >
           <servlet-name> spring</ servlet-name>
           <url-pattern> *.html</url-pattern >
     </servlet-mapping >
    技术分享
     技术分享
     由此,我们可以看到,要进入到LoginController,我们需要在浏览器中输入:localhost:8080/springMybatis/background/to_login.html
     这里面的background、to_loggin,和html,分别是在Controller中和web.xml中配置的。
 

spring中action和url的对应关系

标签:

原文地址:http://www.cnblogs.com/justinzhang/p/4219767.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!