Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
带水的鱼儿
spring-framework
提交
b6772061
S
spring-framework
项目概览
带水的鱼儿
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b6772061
编写于
6月 15, 2021
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish Javadoc
上级
e04ca3d6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
14 deletion
+17
-14
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java
...rg/springframework/jdbc/core/simple/SimpleJdbcInsert.java
+3
-3
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java
.../method/annotation/RequestPartMethodArgumentResolver.java
+2
-2
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java
.../method/annotation/RequestPartMethodArgumentResolver.java
+12
-9
未找到文件。
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java
浏览文件 @
b6772061
/*
* Copyright 2002-20
17
the original author or authors.
* Copyright 2002-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -33,10 +33,10 @@ import org.springframework.jdbc.support.KeyHolder;
*
* <p>The meta-data processing is based on the DatabaseMetaData provided by the
* JDBC driver. As long as the JDBC driver can provide the names of the columns
* for a specified table th
a
n we can rely on this auto-detection feature. If that
* for a specified table th
e
n we can rely on this auto-detection feature. If that
* is not the case, then the column names must be specified explicitly.
*
* <p>The actual insert is
being
handled using Spring's {@link JdbcTemplate}.
* <p>The actual insert is handled using Spring's {@link JdbcTemplate}.
*
* <p>Many of the configuration methods return the current instance of the
* SimpleJdbcInsert to provide the ability to chain multiple ones together
...
...
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java
浏览文件 @
b6772061
/*
* Copyright 2002-202
0
the original author or authors.
* Copyright 2002-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -47,7 +47,7 @@ import org.springframework.web.server.ServerWebInputException;
* for a single value (e.g. Reactor {@code Mono}, RxJava {@code Single}).
*
* <p>This resolver also supports arguments of type {@link Part} which may be
* wrapped with a
re reactive type for a singl
e or multiple values.
* wrapped with a
reactive type for a single valu
e or multiple values.
*
* @author Rossen Stoyanchev
* @since 5.0
...
...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java
浏览文件 @
b6772061
/*
* Copyright 2002-20
18
the original author or authors.
* Copyright 2002-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -54,14 +54,17 @@ import org.springframework.web.multipart.support.RequestPartServletServerHttpReq
* 'Content-Type' of the request part in mind. This is analogous to what @{@link RequestBody}
* does to resolve an argument based on the content of a regular request.
*
* <p>When a parameter is not annotated or the name of the part is not specified,
* it is derived from the name of the method argument.
* <p>When a parameter is not annotated with {@code @RequestPart} or the name of
* the part is not specified, the request part's name is derived from the name of
* the method argument.
*
* <p>Automatic validation may be applied if the argument is annotated with
* {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
* or custom annotations whose name starts with "Valid". In case of validation failure,
* a {@link MethodArgumentNotValidException} is raised and a 400 response status code returned if
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver} is configured.
* annotation, or a custom annotation whose name starts with "Valid". In case of
* validation failure, a {@link MethodArgumentNotValidException} is raised and a
* 400 response status code returned if the
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver}
* is configured.
*
* @author Rossen Stoyanchev
* @author Brian Clozel
...
...
@@ -78,7 +81,7 @@ public class RequestPartMethodArgumentResolver extends AbstractMessageConverterM
}
/**
* Constructor with converters and {@code Request
~
} and
* Constructor with converters and {@code Request
BodyAdvice
} and
* {@code ResponseBodyAdvice}.
*/
public
RequestPartMethodArgumentResolver
(
List
<
HttpMessageConverter
<?>>
messageConverters
,
...
...
@@ -89,8 +92,8 @@ public class RequestPartMethodArgumentResolver extends AbstractMessageConverterM
/**
* Whether the given {@linkplain MethodParameter method parameter} is
a multi-part
* supported
. Supports the following
:
* Whether the given {@linkplain MethodParameter method parameter} is
* supported
as multi-part. Supports the following method parameters
:
* <ul>
* <li>annotated with {@code @RequestPart}
* <li>of type {@link MultipartFile} unless annotated with {@code @RequestParam}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录