File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/ru/mystamps/web/config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 63
63
import ru .mystamps .web .support .spring .mvc .BigDecimalConverter ;
64
64
import ru .mystamps .web .support .spring .mvc .RestExceptionHandler ;
65
65
66
+ import java .time .Duration ;
66
67
import java .util .Locale ;
67
- import java .util .concurrent .TimeUnit ;
68
68
69
69
@ Configuration
70
70
@ EnableScheduling
@@ -114,7 +114,7 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
114
114
.addFixedVersionStrategy (ResourceUrl .RESOURCES_VERSION , "/**" );
115
115
116
116
@ SuppressWarnings ("checkstyle:magicnumber" )
117
- CacheControl cacheControl = CacheControl .maxAge (7 , TimeUnit . DAYS );
117
+ CacheControl cacheControl = CacheControl .maxAge (Duration . ofDays ( 7 ) );
118
118
119
119
registry .addResourceHandler ("/static/**" )
120
120
.addResourceLocations ("/WEB-INF/static/" )
You can’t perform that action at this time.
0 commit comments