#BAEL-2862: remove SecurityAutoConfiguration class and extra annotation

This commit is contained in:
h_sharifi 2023-01-02 13:33:43 +03:30
parent a26acf8a0c
commit b4ad1e9f2d
1 changed files with 6 additions and 7 deletions

View File

@ -1,19 +1,18 @@
package com.baeldung.web.log.app;
import javax.servlet.ServletRegistration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import com.baeldung.web.log.config.CustomeRequestLoggingFilter;
@EnableAutoConfiguration
@ComponentScan("com.baeldung.web.log")
@PropertySource("application-log.properties")
@SpringBootApplication
@SpringBootApplication(exclude = {
SecurityAutoConfiguration.class,
ManagementWebSecurityAutoConfiguration.class
})
public class Application {
public static void main(final String[] args) {