diff --git a/spring-web-modules/spring-web-url/pom.xml b/spring-web-modules/spring-web-url/pom.xml index 199acfdac0..258ce88afd 100644 --- a/spring-web-modules/spring-web-url/pom.xml +++ b/spring-web-modules/spring-web-url/pom.xml @@ -6,7 +6,6 @@ spring-web-url spring-web-url war - Demo project for Spring Boot com.baeldung diff --git a/spring-web-modules/spring-web-url/src/main/java/com/baeldung/exclude_urls_filter/Application.java b/spring-web-modules/spring-web-url/src/main/java/com/baeldung/exclude_urls_filter/Application.java index 13b6cc5c33..9841a9b967 100644 --- a/spring-web-modules/spring-web-url/src/main/java/com/baeldung/exclude_urls_filter/Application.java +++ b/spring-web-modules/spring-web-url/src/main/java/com/baeldung/exclude_urls_filter/Application.java @@ -2,15 +2,9 @@ package com.baeldung.exclude_urls_filter; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; -import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; -@SpringBootApplication(exclude = { - DataSourceAutoConfiguration.class, - DataSourceTransactionManagerAutoConfiguration.class, - HibernateJpaAutoConfiguration.class}) +@SpringBootApplication public class Application { public static void main(String[] args) { diff --git a/spring-web-modules/spring-web-url/src/main/java/com/baeldung/form_submission/Application.java b/spring-web-modules/spring-web-url/src/main/java/com/baeldung/form_submission/Application.java index c0b9a05e78..34c14141b0 100644 --- a/spring-web-modules/spring-web-url/src/main/java/com/baeldung/form_submission/Application.java +++ b/spring-web-modules/spring-web-url/src/main/java/com/baeldung/form_submission/Application.java @@ -2,15 +2,9 @@ package com.baeldung.form_submission; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; -import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; -@SpringBootApplication(exclude = { - DataSourceAutoConfiguration.class, - DataSourceTransactionManagerAutoConfiguration.class, - HibernateJpaAutoConfiguration.class}) +@SpringBootApplication public class Application extends SpringBootServletInitializer { public static void main(String[] args) { diff --git a/spring-web-modules/spring-web-url/src/main/java/com/baeldung/spring/slash/Application.java b/spring-web-modules/spring-web-url/src/main/java/com/baeldung/spring/slash/Application.java index 6f2352b499..7db6ac3755 100644 --- a/spring-web-modules/spring-web-url/src/main/java/com/baeldung/spring/slash/Application.java +++ b/spring-web-modules/spring-web-url/src/main/java/com/baeldung/spring/slash/Application.java @@ -2,15 +2,9 @@ package com.baeldung.spring.slash; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; -import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; -@SpringBootApplication(exclude = { - DataSourceAutoConfiguration.class, - DataSourceTransactionManagerAutoConfiguration.class, - HibernateJpaAutoConfiguration.class}) +@SpringBootApplication public class Application implements WebMvcConfigurer { public static void main(String[] args) {