E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
RequestMethod
SpringMVC post请求的处理(登录表单案例)
在控制器中准备一个方法来处理该请求@Controller@RequestMapping("uc")publicclassUserController{@RequestMapping(value="islogin",method=
RequestMethod
.PO
benxiaohai888
·
2017-11-14 13:34
SpringMVC
SpringMVC自定义分页
后台数据Controller@RequestMapping(value="/page",method=
RequestMethod
.GET)publicStringpage(finalModelmodel
多隆
·
2017-11-13 17:55
SpringMVC
微信utf-8格式 post方法
阅读更多@RequestMapping(value="createmenu",method=
RequestMethod
.GET)@ResponseBodypublicstaticStringcreatemenu
leiding
·
2017-11-08 18:00
SpringMVC如何用实体对象接收参数(form表单形式)
后台在controller的方法参数里面写:你要用来接收的实体对象,不要加@RequestBody代码示例:@RequestMapping(value="require/publish",method=
RequestMethod
.POST
cg_Amaz1ng
·
2017-11-07 09:11
spring
Error creating bean with name 'handlerMapping'
spring-web的版本在4.2以上2.用一下代码代替@RequestMapping(value={"/put"},method={org.springframework.web.bind.annotation.
RequestMethod
.PUT
飞来的贼
·
2017-11-06 22:58
实习笔记
android 与 服务器通信
android与服务器通信服务端代码:(1)control层/***用户登录*@return*/@RequestMapping(value="/login",method=
RequestMethod
.POST
卞卞
·
2017-11-04 15:00
SOA中springmvc中restful服务动态刷新token信息
而且还要单独启动定时调度任务去刷新token信息,保证token的时效及安全问题,直接分享动态刷新token的代码:@CrossOrigin(origins="*",maxAge=3600,methods={
RequestMethod
.GET
springcloud关注者
·
2017-11-03 09:00
restful
soa
soa
token刷新
springmvc
restful
soa
token
springmvc
SOA中springmvc中restful服务动态刷新token信息
而且还要单独启动定时调度任务去刷新token信息,保证token的时效及安全问题,直接分享动态刷新token的代码:@CrossOrigin(origins="*",maxAge=3600,methods={
RequestMethod
.GET
springcloud关注者
·
2017-11-03 09:00
restful
soa
soa
token刷新
springmvc
restful
soa
token
springmvc
Spring mvc中前后端数据交互的方式
springmvc中前后的数据交互的方式:后端➡前端在SpringMVC中这主要通过Model将数据从后端传送到前端,一般的写法为:@RequestMapping(value="/index",method=
RequestMethod
.POST
执子之手-砥砺前行
·
2017-10-30 15:08
Spring MVC前后端的数据传输的实现方法
具体内容如下所示:后端――>前端在SpringMVC中这主要通过Model将数据从后端传送到前端,一般的写法为:@RequestMapping(value="/index",method=
RequestMethod
.POST
deyken
·
2017-10-30 14:00
Java实现文件下载
一、前台通过a标签打开接口,传入文件id下载二、后台接收id,查找对应文件,进行下载@RequestMapping(value="downloadFile/{id}",method=
RequestMethod
.GET
程序员阿坤
·
2017-10-25 12:22
Java
spring boot validated的使用
可以用如下方式一基础使用因为spring-boot已经引入了基础包,所以直接使用就可以了1首先在controller上声明需要对数据进行校验@RequestMapping(value="/url.json",method={
RequestMethod
方老司
·
2017-10-25 00:00
springboot
validation
(十二) 整合spring cloud云架构 - SSO单点登录之OAuth2.0 登出流程(3)
的登录认证的流程图,今天我们看一下logout的流程:/***用户注销*@paramaccessToken*@return*/@RequestMapping(value="/user/logout",method=
RequestMethod
.POST
springcloud关注者
·
2017-10-22 23:00
spring
cloud
spring
boot
spring
cloud
oauth2
spring
MMC+mybatis
plus
spring
cloud
security
(十二) 整合spring cloud云架构 - SSO单点登录之OAuth2.0 登出流程(3)
的登录认证的流程图,今天我们看一下logout的流程:/***用户注销*@paramaccessToken*@return*/@RequestMapping(value="/user/logout",method=
RequestMethod
.POST
springcloud关注者
·
2017-10-22 23:00
spring
cloud
spring
boot
spring
cloud
oauth2
spring
MMC+mybatis
plus
spring
cloud
security
(十二) 整合spring cloud云架构 - SSO单点登录之OAuth2.0 登出流程(3)
的登录认证的流程图,今天我们看一下logout的流程:/***用户注销*@paramaccessToken*@return*/@RequestMapping(value="/user/logout",method=
RequestMethod
.POST
springcloud关注者
·
2017-10-22 23:00
spring
cloud
spring
boot
spring
cloud
oauth2
spring
MMC+mybatis
plus
spring
cloud
security
500错误问题及解决办法
ajax发送请求报500错误:RequestURL:http://127.0.0.1:8001/user/login_check/
RequestMethod
:POSTStatusCode:500INTERNALSERVERERRORRemoteAddress
mlj0503
·
2017-10-22 21:04
在网页上面录制声音(chrome、firefox浏览器可用)
代码结构如下:VoiceController主要代码:@RequestMapping(value="/voice2.do",method=
RequestMethod
.GET)publicModelAndViewvoice
月夜楓
·
2017-10-16 20:02
js
SSM-后端接收前端传递的文件
publicclassvrDrivenTestController{//JSON形式返回给结果@ResponseBody//文件只能用POST方式进行传递@RequestMapping(value="/upload",method=
RequestMethod
.POST
Joe__sir
·
2017-10-11 21:23
ssm项目上传图片
src属性然后是同过IO流把图片作为文件保存到服务器upload文件夹,具体实现:1.添加对应的jar包2.Controller页面@RequestMapping(value="/add",method=
RequestMethod
.POST
Sunshine_du
·
2017-10-10 20:23
SSM
springmvc@RequestMapping的method请求方式
.创建success.jsp页面请求成功3.创建一个类(HelloController),写上以下方法:请求默认发的get@RequestMapping(value="/hello1",method=
RequestMethod
.GET
爱笑的女孩运气不会太差
·
2017-10-10 15:12
spring
mvc
SpringMVC
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
很尴尬的一个错误,看程序:controller代码:@RequestMapping(value="/publish",method=
RequestMethod
.POST,produces=MediaType.APPLICATION_JSON_VALUE
amoxuk
·
2017-10-07 01:42
JAVA
接口被调用 返回jsonArray 处理jsonArray数据
阅读更多@RequestMapping(value="/querySource.htm",method=
RequestMethod
.POST)publicStringinit(HttpServletRequestrequest
__点__
·
2017-09-27 16:00
接口
jsonArray
jsonArray转对象
接口被调用 返回jsonArray 处理jsonArray数据
阅读更多@RequestMapping(value="/querySource.htm",method=
RequestMethod
.POST)publicStringinit(HttpServletRequestrequest
__点__
·
2017-09-27 16:00
接口
jsonArray
jsonArray转对象
Spring通过注释标签解决Ajax跨域访问以及Session失效的问题
比如@RequestMapping(value="/XXX",method=
RequestMethod
.POST)。
当时年少春衫薄丶
·
2017-09-25 10:24
JS
Java
spring boot中实现响应图片的方法以及改进
.+}"},method=
RequestMethod
.GET,produces={MediaType.IMAGE_JPEG_VALUE,MediaType.IMAGE_GIF_VALUE,MediaType.IMAGE_PNG_VALUE
cnn237111
·
2017-09-24 14:38
spring-boot
Java
Apache POI实现数据的Excel导入
ExportDataController.java@RequestMapping(value="ImportExcelProduct.do",method=
RequestMethod
.POST)publicStringImportExcelProd
ii_Good
·
2017-09-21 10:39
springboot\maven 添加上传图片、三级联动
org.springframework.bootspring-boot-starter-thymeleafcontroller层上传代码@RequestMapping(value="add",method=
RequestMethod
.POST
Cc__xac__xac
·
2017-09-20 15:23
分页的controller方法代码
@RequestMapping(value="/selectall",method=
RequestMethod
.GET)publicStringuserSelectAll(StringpageNo,StringpageSize
laichix
·
2017-09-20 13:09
Django运行访问项目出现的问题:DisallowedHost at / Invalid HTTP_HOST header
DisallowedHostat/InvalidHTTP_HOSTheader:'10.211.55.6:8000'.Youmayneedtoaddu'10.211.55.6'toALLOWED_HOSTS.
RequestMethod
码农成长之路
·
2017-09-16 19:51
Python
nodejs
SpringBoot SpringMVC实现文件下载
SpringBootSpringMVC实现文件下载@RequestMapping(value="/download",method=
RequestMethod
.GET)ResponseEntitydownloadFile
一个会写诗的程序员
·
2017-09-13 14:42
Java Web 实现导航栏 active 状态随着页面自动切换
2323.05.59.png螢幕快照2017-08-2323.05.46.pngController代码@RequestMapping(value="meituView",method=arrayOf(
RequestMethod
.GET
一个会写诗的程序员
·
2017-09-13 14:37
spring: 客户端请求报 "HTTP 415" 错误 之 解法
@RequestMapping(value="/add",method=
RequestMethod
.POST,procedures="application/json;utf-8")@ResponseBody
门关
·
2017-09-12 13:42
后端开发之神
freemarker分页模板
Mybatis实现分页controller层部分代码/***分页显示某个类别下的商品*/@RequestMapping(value="/category/{urlName}/{page}",method=
RequestMethod
.GET
normol
·
2017-09-07 22:03
freemarker
RestTemplate的几种方法的参数
的getForObject完成get请求、postForObject完成post请求、put对应的完成put请求、delete完成delete请求;还有execute可以执行任何请求的方法,需要你设置
RequestMethod
pyd950812
·
2017-09-04 16:26
Spring Boot学习入门之统一异常处理详解
其中所提到的Controller:@RequestMapping(value="/doRegister",method=
RequestMethod
.POST)public@ResponseBodyUserdoRegister
a60782885
·
2017-09-04 09:11
卡路里计算器微信小程序前后端交互
SSM框架在Controller中添加一个@RequestMapping(value="/getjson",method={
RequestMethod
.GET})@ResponseBodypublicRespondResulttoJson
阿de牧
·
2017-08-31 16:21
spring@Controller注解接受参数的方式
传参为json格式,但是没有实体类可以去接受参数类型2:用实体类去接受参数类型1:@RequestMapping(value="/POST/pos/discountinforinqury",method=
RequestMethod
.POST
dongchen2017
·
2017-08-31 15:40
杂类
java
关于一个自动登录使用@CookieValue取cookie值的问题。
跳往首页的代码:@ControllerpublicclassIndexController{@RequestMapping(value="/to_indexTest",method=
RequestMethod
.GET
qq_39175989
·
2017-08-29 10:02
JSP页面传入后台多个相同参数后台接收的问题:多选框传值
,找到了一个解决方案.前台页面如下:checked="checked"/>${resource.name}后台代码:@RequestMapping(value="add.action",method=
RequestMethod
.POST
esileme
·
2017-08-25 21:26
Java 导出Excel实例
@ResponseBody@RequestMapping(value="export",method=
RequestMethod
.GET,produces={"application/json;charset
chajinglong
·
2017-08-23 20:30
Java
腾讯云-对象存储-签名失败
腾讯云上传图片签名*获取多次签名,一段时间内有效,针对上传文件,重命名文件,创建目录,获取文件目录属性,拉取目录列表**@return*/@RequestMapping(value="",method=
RequestMethod
.POST
lemon_cake
·
2017-08-18 10:56
腾讯云
zuul学习三:zuul路由详解(二)
user-service中定义一个上传接口:@ControllerpublicclassFileUploadController{@RequestMapping(value="/upload",method=
RequestMethod
.POST
二月_春风
·
2017-08-13 17:28
GetMapping 和 PostMapping
以@GetMapping为例,Spring官方文档说:@GetMapping是一个组合注解,是@RequestMapping(method=
RequestMethod
.GE
大鹏小站
·
2017-08-08 18:07
java-基础
SpringBoot(三):文件下载
在原来的SpringBoot–uploadfile项目基础上添加文件下载的Controller:@RequestMapping(value="/testDownload",method=
RequestMethod
.GET
Radom7
·
2017-08-02 10:42
SpringBoot
(7)ajax发送put请求问题
ajax发送post请求,服务器警告:
Requestmethod
‘POST’notsupported。为什么会就不能像发送get请求那样,舒舒服服的得到预期的效果呢?
北冥友余
·
2017-07-26 16:11
前端基础
HttpServletRequest对象简介_动力节点Java学院整理
代码和结果如下:StringrequestMethod=request.getMethod();System.out.println(
requestMethod
);想获取客户端发来的HTTP请求头中的内容可以使用如下方法
fjdingsd
·
2017-07-25 10:24
逗号分隔字符串转List
@RequestMapping(value="/deactiviate",method=
RequestMethod
.POST)@ResponseBodypublicResponsedeactiviate
ImagineDranges
·
2017-07-21 10:54
java
IE8+SpringMVC文件上传防止JSON下载
json并且不会出现下载的情况:同时适用于当设置SPRING视图解析器的时候,不能去掉@responseBody的问题@RequestMapping(value="/batchUpload",method=
RequestMethod
.POST
隔江千万里
·
2017-07-21 09:29
使用springboot构造quartz的rest api
序给quartz对job、trigger的一些操作增加restapitrigger@RequestMapping(value="/trigger/keys",method=
RequestMethod
.GET
codecraft
·
2017-07-13 00:00
springboot
错误日志中去除重复的日志
在错误日志log_errorhh.loglog_errorhh.log.1中存在大量的重复不需要的日志内容是:
Requestmethod
'HEAD'#/bin/bash#定义个时间变量A=`date+%
苑洪武
·
2017-07-06 17:10
linux去除重复日志
上一页
28
29
30
31
32
33
34
35
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他