@RequestMapping(params = "")用法淺析。
例子:
@Controller
@RequestMapping({"/userServlet","/wh/userServlet","/wcq/userServlet","/xwrj/userServlet","/lh/userServlet","/hsq/userServlet","/xwx/userServlet","/jys/userServlet","/cdq/userServlet","/dxhq/userServlet","/fxpg/userServlet"})
public class UserServlet extends SuperServlet {
//方法:
@RequestMapping(params = "action=logins")
public void Logins(HttpServletRequest request,HttpServletResponse response)
前段請求如:
<form class="form1" method="post" accept-charset="utf-8" id="form1" name="form1" action="<%=request.getContextPath()%>/userServlet?action=logins">
/userServlet?action=logins中的action=logins為請求字串,
(params = "action=logins")對應該設定。
相關文章
- 淺析MySQL replace into 的用法MySql
- C++ remove erase 用法淺析C++REM
- 淺析線上代理IP的用法
- 淺談C#可變引數paramsC#
- spring mvc中的@RequestMapping value用法小結SpringMVCAPP
- iOS Block淺淺析iOSBloC
- 淺析Java中的雜湊值HashCode的作用及用法Java
- 淺析 JWTJWT
- MongoDB淺析MongoDB
- RunLoop 淺析OOP
- Nginx淺析Nginx
- 淺析 requestAnimationFramerequestAnimationFrame
- 淺析PromisePromise
- 淺析GitGit
- 淺析RedisRedis
- Jvm 淺析JVM
- Webpack 原理淺析Web
- css: clip淺析CSS
- 淺析Promise原理Promise
- BTrace 原理淺析
- 淺析Java NIOJava
- 字串模板淺析字串
- 淺析 ReentrantLockReentrantLock
- HTTP Cache 淺析HTTP
- 淺析JAVA反射Java反射
- setXfermode 模式淺析模式
- AQS原理淺析AQS
- koa原理淺析
- CGLib淺析CGLib
- 淺析DES原理
- ejs 淺析JS
- AIDL淺析AI
- Fragment流程淺析Fragment
- 淺析SELinuxLinux
- IOS代理淺析iOS
- MySQL Replication淺析MySql
- web安全淺析Web
- Seata原理淺析