More idiomatic filter registration would be:

```java
environment.servlets().addFilter("DateHeaderServletFilter", new DateHeaderServletFilter())
    addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), true, "/");
```