Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
6f97bc58
Commit
6f97bc58
authored
Nov 22, 2017
by
Brian Clozel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11111 from izeye:fix-s-max-age
* pr/11111: Fix getter and setter for sMaxAge
parents
1b59e88a
858d3255
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ResourceProperties.java
...gframework/boot/autoconfigure/web/ResourceProperties.java
+2
-2
ResourcePropertiesTests.java
...ework/boot/autoconfigure/web/ResourcePropertiesTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java
View file @
6f97bc58
...
@@ -444,11 +444,11 @@ public class ResourceProperties {
...
@@ -444,11 +444,11 @@ public class ResourceProperties {
this
.
staleIfError
=
staleIfError
;
this
.
staleIfError
=
staleIfError
;
}
}
public
Duration
get
s
MaxAge
()
{
public
Duration
get
S
MaxAge
()
{
return
this
.
sMaxAge
;
return
this
.
sMaxAge
;
}
}
public
void
set
s
MaxAge
(
Duration
sMaxAge
)
{
public
void
set
S
MaxAge
(
Duration
sMaxAge
)
{
this
.
sMaxAge
=
sMaxAge
;
this
.
sMaxAge
=
sMaxAge
;
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ResourcePropertiesTests.java
View file @
6f97bc58
...
@@ -95,7 +95,7 @@ public class ResourcePropertiesTests {
...
@@ -95,7 +95,7 @@ public class ResourcePropertiesTests {
cacheControlProperties
.
setMustRevalidate
(
true
);
cacheControlProperties
.
setMustRevalidate
(
true
);
cacheControlProperties
.
setNoTransform
(
true
);
cacheControlProperties
.
setNoTransform
(
true
);
cacheControlProperties
.
setProxyRevalidate
(
true
);
cacheControlProperties
.
setProxyRevalidate
(
true
);
cacheControlProperties
.
set
s
MaxAge
(
Duration
.
ofSeconds
(
5
));
cacheControlProperties
.
set
S
MaxAge
(
Duration
.
ofSeconds
(
5
));
cacheControlProperties
.
setStaleIfError
(
Duration
.
ofSeconds
(
6
));
cacheControlProperties
.
setStaleIfError
(
Duration
.
ofSeconds
(
6
));
cacheControlProperties
.
setStaleWhileRevalidate
(
Duration
.
ofSeconds
(
7
));
cacheControlProperties
.
setStaleWhileRevalidate
(
Duration
.
ofSeconds
(
7
));
this
.
properties
.
setCacheControl
(
cacheControlProperties
);
this
.
properties
.
setCacheControl
(
cacheControlProperties
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment