From 66188c0a7367718512780810fef3e010bdab5c70 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Mar 2025 01:00:08 +0000 Subject: [PATCH 1/5] WIP --- pom.xml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index f5d485b0..36a38c3d 100644 --- a/pom.xml +++ b/pom.xml @@ -14,18 +14,21 @@ org.springframework.boot spring-boot-starter-parent - 2.0.4.RELEASE + 2.7.14 UTF-8 UTF-8 - 1.8 + 17 9081 127.0.0.1 readme 1.18.10 + 2.5.2.RELEASE + 2.15.2 + @@ -64,18 +67,18 @@ org.springframework.security spring-security-jwt - 1.0.7.RELEASE + 1.1.1.RELEASE org.springframework.security.oauth spring-security-oauth2 - 2.1.0.RELEASE + ${spring-security-oauth2.version} com.fasterxml.jackson.core jackson-databind - 2.9.10.8 + ${jackson-databind.version} @@ -144,8 +147,8 @@ maven-compiler-plugin 3.8.1 - 1.8 - 1.8 + 17 + 17 org.projectlombok @@ -158,4 +161,4 @@ - + \ No newline at end of file From c32e34fe8a939dc51b71da4aa4c57e1ec8a91451 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Mar 2025 01:01:51 +0000 Subject: [PATCH 2/5] WIP --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 36a38c3d..604abace 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ 9081 127.0.0.1 readme - 1.18.10 + 1.18.30 2.5.2.RELEASE 2.15.2 From 4b315b13d68664b8b34d10771ace20ef6fee4c7f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Mar 2025 01:02:34 +0000 Subject: [PATCH 3/5] WIP --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index 604abace..ba1e2f0b 100644 --- a/pom.xml +++ b/pom.xml @@ -49,6 +49,11 @@ spring-boot-starter-web + + org.springframework.boot + spring-boot-starter-validation + + org.springframework.boot spring-boot-devtools From 87ba2ab9a58f359d287e83972af92ea1e84a1284 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Mar 2025 01:03:55 +0000 Subject: [PATCH 4/5] WIP --- .../integration/SpringbootJwtApplicationTests.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/test/java/com/nouhoun/springboot/jwt/integration/SpringbootJwtApplicationTests.java b/src/test/java/com/nouhoun/springboot/jwt/integration/SpringbootJwtApplicationTests.java index 32686115..6ee5f24d 100644 --- a/src/test/java/com/nouhoun/springboot/jwt/integration/SpringbootJwtApplicationTests.java +++ b/src/test/java/com/nouhoun/springboot/jwt/integration/SpringbootJwtApplicationTests.java @@ -1,16 +1,13 @@ package com.nouhoun.springboot.jwt.integration; -import org.junit.Test; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; -@RunWith(SpringRunner.class) @SpringBootTest -public class SpringbootJwtApplicationTests { +class SpringbootJwtApplicationTests { @Test - public void contextLoads() { + void contextLoads() { } -} +} \ No newline at end of file From 99c122ed7b9c8ed94bb0ad4622321f6078b95e98 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Mar 2025 01:04:40 +0000 Subject: [PATCH 5/5] WIP --- src/main/resources/sql-scripts/schema.sql | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/main/resources/sql-scripts/schema.sql b/src/main/resources/sql-scripts/schema.sql index 61047271..707e653c 100644 --- a/src/main/resources/sql-scripts/schema.sql +++ b/src/main/resources/sql-scripts/schema.sql @@ -1,30 +1,25 @@ CREATE TABLE random_city ( - id bigint(20) NOT NULL AUTO_INCREMENT, - name varchar(255) DEFAULT NULL, - PRIMARY KEY (id) + id IDENTITY NOT NULL PRIMARY KEY, + name varchar(255) DEFAULT NULL ); CREATE TABLE app_role ( - id bigint(20) NOT NULL AUTO_INCREMENT, + id IDENTITY NOT NULL PRIMARY KEY, description varchar(255) DEFAULT NULL, - role_name varchar(255) DEFAULT NULL, - PRIMARY KEY (id) + role_name varchar(255) DEFAULT NULL ); - CREATE TABLE app_user ( - id bigint(20) NOT NULL AUTO_INCREMENT, + id IDENTITY NOT NULL PRIMARY KEY, first_name varchar(255) NOT NULL, last_name varchar(255) NOT NULL, password varchar(255) NOT NULL, - username varchar(255) NOT NULL, - PRIMARY KEY (id) + username varchar(255) NOT NULL ); - CREATE TABLE user_role ( - user_id bigint(20) NOT NULL, - role_id bigint(20) NOT NULL, + user_id bigint NOT NULL, + role_id bigint NOT NULL, CONSTRAINT FK859n2jvi8ivhui0rl0esws6o FOREIGN KEY (user_id) REFERENCES app_user (id), CONSTRAINT FKa68196081fvovjhkek5m97n3y FOREIGN KEY (role_id) REFERENCES app_role (id) ); \ No newline at end of file