From 7222bca6e26f2fea35745f01614f5e843e2ba2e4 Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Wed, 6 Mar 2024 17:30:13 +0100 Subject: [PATCH] added spring boot security without the login page --- backend/build.gradle.kts | 1 + backend/src/main/java/ovh/herisson/Clyde/ClydeApplication.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/build.gradle.kts b/backend/build.gradle.kts index eabd3e3..59826c5 100644 --- a/backend/build.gradle.kts +++ b/backend/build.gradle.kts @@ -21,6 +21,7 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter-mail") implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-data-jpa") + implementation("org.springframework.boot:spring-boot-starter-security") // implementation("org.springframework.session:spring-session-jdbc") developmentOnly("org.springframework.boot:spring-boot-devtools") developmentOnly("org.springframework.boot:spring-boot-docker-compose") diff --git a/backend/src/main/java/ovh/herisson/Clyde/ClydeApplication.java b/backend/src/main/java/ovh/herisson/Clyde/ClydeApplication.java index aa2882d..364eba7 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/ClydeApplication.java +++ b/backend/src/main/java/ovh/herisson/Clyde/ClydeApplication.java @@ -2,8 +2,9 @@ package ovh.herisson.Clyde; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; -@SpringBootApplication +@SpringBootApplication(exclude = { SecurityAutoConfiguration.class }) public class ClydeApplication { public static void main(String[] args) {