18 lines
819 B
Java
18 lines
819 B
Java
|
package org.baeldung;
|
||
|
|
||
|
import org.springframework.boot.SpringApplication;
|
||
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||
|
import org.springframework.boot.context.web.SpringBootServletInitializer;
|
||
|
import org.springframework.context.annotation.ComponentScan;
|
||
|
import org.springframework.context.annotation.Configuration;
|
||
|
import org.springframework.context.annotation.FilterType;
|
||
|
|
||
|
@Configuration
|
||
|
@EnableAutoConfiguration
|
||
|
@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX, pattern = "org.baeldung.voter.*"), @ComponentScan.Filter(type = FilterType.REGEX, pattern = "org.baeldung.multiplelogin.*")})
|
||
|
public class Application extends SpringBootServletInitializer {
|
||
|
public static void main(String[] args) {
|
||
|
SpringApplication.run(Application.class, args);
|
||
|
}
|
||
|
}
|