Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SSSDNSY
spring-framework
提交
5a92aa4e
S
spring-framework
项目概览
SSSDNSY
/
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,发现更多精彩内容 >>
提交
5a92aa4e
编写于
7月 20, 2016
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polishing
(cherry picked from commit
a39276ad
)
上级
7b1010cf
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
10 addition
and
15 deletion
+10
-15
spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java
.../java/org/springframework/core/io/FileSystemResource.java
+2
-3
spring-core/src/main/java/org/springframework/core/io/UrlResource.java
...rc/main/java/org/springframework/core/io/UrlResource.java
+2
-2
spring-core/src/main/java/org/springframework/util/ClassUtils.java
...re/src/main/java/org/springframework/util/ClassUtils.java
+5
-5
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java
...gframework/web/servlet/mvc/ServletWrappingController.java
+1
-5
未找到文件。
spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java
浏览文件 @
5a92aa4e
/*
* Copyright 2002-201
5
the original author or authors.
* Copyright 2002-201
6
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.
...
...
@@ -30,7 +30,7 @@ import org.springframework.util.StringUtils;
/**
* {@link Resource} implementation for {@code java.io.File} handles.
*
Obviously supports resolution as File, and also as URL
.
*
Supports resolution as a {@code File} and also as a {@code URL}
.
* Implements the extended {@link WritableResource} interface.
*
* @author Juergen Hoeller
...
...
@@ -85,7 +85,6 @@ public class FileSystemResource extends AbstractResource implements WritableReso
return
this
.
path
;
}
/**
* This implementation returns whether the underlying file exists.
* @see java.io.File#exists()
...
...
spring-core/src/main/java/org/springframework/core/io/UrlResource.java
浏览文件 @
5a92aa4e
...
...
@@ -32,7 +32,7 @@ import org.springframework.util.StringUtils;
/**
* {@link Resource} implementation for {@code java.net.URL} locators.
*
<p>
Supports resolution as a {@code URL} and also as a {@code File} in
* Supports resolution as a {@code URL} and also as a {@code File} in
* case of the {@code "file:"} protocol.
*
* @author Juergen Hoeller
...
...
@@ -134,6 +134,7 @@ public class UrlResource extends AbstractFileResolvingResource {
}
}
/**
* Determine a cleaned URL for the given original URL.
* @param originalUrl the original URL
...
...
@@ -152,7 +153,6 @@ public class UrlResource extends AbstractFileResolvingResource {
}
}
/**
* This implementation opens an InputStream for the given URL.
* <p>It sets the {@code useCaches} flag to {@code false},
...
...
spring-core/src/main/java/org/springframework/util/ClassUtils.java
浏览文件 @
5a92aa4e
/*
* Copyright 2002-201
5
the original author or authors.
* Copyright 2002-201
6
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.
...
...
@@ -56,16 +56,16 @@ public abstract class ClassUtils {
/** Prefix for internal non-primitive array class names: "[L" */
private
static
final
String
NON_PRIMITIVE_ARRAY_PREFIX
=
"[L"
;
/** The package separator character '.' */
/** The package separator character
:
'.' */
private
static
final
char
PACKAGE_SEPARATOR
=
'.'
;
/** The path separator character '/' */
/** The path separator character
:
'/' */
private
static
final
char
PATH_SEPARATOR
=
'/'
;
/** The inner class separator character '$' */
/** The inner class separator character
:
'$' */
private
static
final
char
INNER_CLASS_SEPARATOR
=
'$'
;
/** The CGLIB class separator
character
"$$" */
/** The CGLIB class separator
:
"$$" */
public
static
final
String
CGLIB_CLASS_SEPARATOR
=
"$$"
;
/** The ".class" file suffix */
...
...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java
浏览文件 @
5a92aa4e
...
...
@@ -136,11 +136,7 @@ public class ServletWrappingController extends AbstractController
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
if
(
this
.
servletClass
==
null
)
{
throw
new
IllegalArgumentException
(
"servletClass is required"
);
}
if
(!
Servlet
.
class
.
isAssignableFrom
(
this
.
servletClass
))
{
throw
new
IllegalArgumentException
(
"servletClass ["
+
this
.
servletClass
.
getName
()
+
"] needs to implement interface [javax.servlet.Servlet]"
);
throw
new
IllegalArgumentException
(
"'servletClass' is required"
);
}
if
(
this
.
servletName
==
null
)
{
this
.
servletName
=
this
.
beanName
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录