Remove Autowired annotation
This commit is contained in:
parent
30a5cddce0
commit
4d21f39851
|
@ -1,6 +1,5 @@
|
||||||
package com.baeldung.filter;
|
package com.baeldung.filter;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
@ -18,7 +17,6 @@ public class AppConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@Autowired
|
|
||||||
public FilterRegistrationBean<LoggingFilterRegistrationBean> loggingFilterRegistration(LoggingService loggingService) {
|
public FilterRegistrationBean<LoggingFilterRegistrationBean> loggingFilterRegistration(LoggingService loggingService) {
|
||||||
FilterRegistrationBean<LoggingFilterRegistrationBean> registrationBean = new FilterRegistrationBean<>();
|
FilterRegistrationBean<LoggingFilterRegistrationBean> registrationBean = new FilterRegistrationBean<>();
|
||||||
registrationBean.setFilter(new LoggingFilterRegistrationBean(loggingService));
|
registrationBean.setFilter(new LoggingFilterRegistrationBean(loggingService));
|
||||||
|
|
Loading…
Reference in New Issue