diff --git a/spring-web-modules/spring-web-url/pom.xml b/spring-web-modules/spring-web-url/pom.xml index 011b17659f..199acfdac0 100644 --- a/spring-web-modules/spring-web-url/pom.xml +++ b/spring-web-modules/spring-web-url/pom.xml @@ -20,10 +20,6 @@ org.springframework.boot spring-boot-starter-web - - org.springframework.boot - spring-boot-starter-validation - org.springframework.boot spring-boot-starter-test @@ -34,52 +30,15 @@ spring-boot-starter-thymeleaf provided - - org.springframework.boot - spring-boot-starter-data-jpa - - - org.springframework.boot - spring-boot-starter-mail - - - org.springframework.boot - spring-boot-starter-actuator - - - - org.subethamail - subethasmtp - ${subethasmtp.version} - test - - - org.apache.httpcomponents - httpclient - ${httpclient.version} - - - org.junit.vintage - junit-vintage-engine - test - ${project.artifactId} - - - src/main/resources - true - - com.baeldung.exclude_urls_filter.Application - 3.1.7 - 4.5.8 \ No newline at end of file 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 9841a9b967..13b6cc5c33 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,9 +2,15 @@ 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 +@SpringBootApplication(exclude = { + DataSourceAutoConfiguration.class, + DataSourceTransactionManagerAutoConfiguration.class, + HibernateJpaAutoConfiguration.class}) 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 34c14141b0..c0b9a05e78 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,9 +2,15 @@ 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 +@SpringBootApplication(exclude = { + DataSourceAutoConfiguration.class, + DataSourceTransactionManagerAutoConfiguration.class, + HibernateJpaAutoConfiguration.class}) public class Application extends SpringBootServletInitializer { public static void main(String[] args) { diff --git a/spring-web-modules/spring-web-url/src/main/resources/application.properties b/spring-web-modules/spring-web-url/src/main/resources/application.properties index fcdaabe007..b95b5671b5 100644 --- a/spring-web-modules/spring-web-url/src/main/resources/application.properties +++ b/spring-web-modules/spring-web-url/src/main/resources/application.properties @@ -1,6 +1,3 @@ -spring.mail.host=localhost -spring.mail.port=8025 - spring.thymeleaf.cache=false spring.thymeleaf.enabled=true spring.thymeleaf.prefix=classpath:/templates/