Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
eef937e4
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
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,体验更适合开发者的 AI 搜索 >>
提交
eef937e4
编写于
7月 21, 2015
作者:
B
Brian Clozel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename <mvc:cachecontrol/> to <mvc:cache-control/>
上级
9149bf7a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
spring-webmvc/src/main/java/org/springframework/web/servlet/config/ResourcesBeanDefinitionParser.java
...ork/web/servlet/config/ResourcesBeanDefinitionParser.java
+1
-1
spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc-4.2.xsd
...org/springframework/web/servlet/config/spring-mvc-4.2.xsd
+2
-2
spring-webmvc/src/test/resources/org/springframework/web/servlet/config/mvc-config-resources-chain-no-auto.xml
...web/servlet/config/mvc-config-resources-chain-no-auto.xml
+1
-1
src/asciidoc/web-mvc.adoc
src/asciidoc/web-mvc.adoc
+1
-1
未找到文件。
spring-webmvc/src/main/java/org/springframework/web/servlet/config/ResourcesBeanDefinitionParser.java
浏览文件 @
eef937e4
...
...
@@ -172,7 +172,7 @@ class ResourcesBeanDefinitionParser implements BeanDefinitionParser {
resourceHandlerDef
.
getPropertyValues
().
add
(
"cacheSeconds"
,
cacheSeconds
);
}
Element
cacheControlElement
=
DomUtils
.
getChildElementByTagName
(
element
,
"cachecontrol"
);
Element
cacheControlElement
=
DomUtils
.
getChildElementByTagName
(
element
,
"cache
-
control"
);
if
(
cacheControlElement
!=
null
)
{
CacheControl
cacheControl
=
parseCacheControl
(
cacheControlElement
);
resourceHandlerDef
.
getPropertyValues
().
add
(
"cacheControl"
,
cacheControl
);
...
...
spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc-4.2.xsd
浏览文件 @
eef937e4
...
...
@@ -506,7 +506,7 @@
</xsd:attribute>
</xsd:complexType>
<xsd:complexType
name=
"cachecontrol"
>
<xsd:complexType
name=
"cache
-
control"
>
<xsd:annotation>
<xsd:documentation
source=
"org.springframework.web.cache.CacheControl"
>
<![CDATA[
Generates "Cache-Control" HTTP response headers.
...
...
@@ -596,7 +596,7 @@
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"cache
control"
type=
"cache
control"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"cache
-control"
type=
"cache-
control"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"resource-chain"
type=
"resource-chain"
minOccurs=
"0"
maxOccurs=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"mapping"
use=
"required"
type=
"xsd:string"
>
...
...
spring-webmvc/src/test/resources/org/springframework/web/servlet/config/mvc-config-resources-chain-no-auto.xml
浏览文件 @
eef937e4
...
...
@@ -6,7 +6,7 @@
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"
>
<mvc:resources
mapping=
"/resources/**"
location=
"/, classpath:/META-INF/"
>
<mvc:cachecontrol
max-age=
"3600"
s-maxage=
"1800"
cache-public=
"true"
/>
<mvc:cache
-
control
max-age=
"3600"
s-maxage=
"1800"
cache-public=
"true"
/>
<mvc:resource-chain
resource-cache=
"false"
auto-registration=
"false"
>
<mvc:resolvers>
<mvc:version-resolver>
...
...
src/asciidoc/web-mvc.adoc
浏览文件 @
eef937e4
...
...
@@ -4222,7 +4222,7 @@ And in XML:
[subs="verbatim"]
----
<mvc:resources
mapping=
"/resources/**"
location=
"/public-resources/"
>
<mvc:cachecontrol
max-age=
"3600"
cache-public=
"true"
/>
<mvc:cache
-
control
max-age=
"3600"
cache-public=
"true"
/>
</mvc:resources>
----
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录