diff --git a/henkilo-ui/src/main/java/fi/vm/sade/henkiloui/configurations/AccessLogConfiguration.java b/henkilo-ui/src/main/java/fi/vm/sade/henkiloui/configurations/AccessLogConfiguration.java index e52699b89..5fc7b8798 100644 --- a/henkilo-ui/src/main/java/fi/vm/sade/henkiloui/configurations/AccessLogConfiguration.java +++ b/henkilo-ui/src/main/java/fi/vm/sade/henkiloui/configurations/AccessLogConfiguration.java @@ -1,7 +1,6 @@ package fi.vm.sade.henkiloui.configurations; import ch.qos.logback.access.tomcat.LogbackValve; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; import org.springframework.boot.web.server.ErrorPage; import org.springframework.boot.web.server.WebServerFactoryCustomizer; @@ -13,7 +12,6 @@ public class AccessLogConfiguration { @Bean - @ConditionalOnProperty(name = "logback.access") WebServerFactoryCustomizer containerCustomizer() { return container -> { container.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/")); diff --git a/oppijanumerorekisteri-service/src/main/java/fi/vm/sade/oppijanumerorekisteri/configurations/AccessLogConfiguration.java b/oppijanumerorekisteri-service/src/main/java/fi/vm/sade/oppijanumerorekisteri/configurations/AccessLogConfiguration.java index 400658efb..c31675a7f 100644 --- a/oppijanumerorekisteri-service/src/main/java/fi/vm/sade/oppijanumerorekisteri/configurations/AccessLogConfiguration.java +++ b/oppijanumerorekisteri-service/src/main/java/fi/vm/sade/oppijanumerorekisteri/configurations/AccessLogConfiguration.java @@ -1,7 +1,6 @@ package fi.vm.sade.oppijanumerorekisteri.configurations; import ch.qos.logback.access.tomcat.LogbackValve; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.web.embedded.tomcat.TomcatContextCustomizer; import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; import org.springframework.boot.web.server.WebServerFactory;