java 21, gradle 8.14 로 변경.

This commit is contained in:
Hyojin Ahn 2026-06-08 09:28:59 -04:00
parent 6bb2817654
commit a0a14fe27c
3 changed files with 9 additions and 9 deletions

View File

@ -10,17 +10,18 @@ This project demonstrates the implementation of security using Spring Boot 3.0 a
* Refresh token
## Technologies
* Spring Boot 3.0
* Spring Boot 3.5
* Java 21
* Spring Security
* JSON Web Tokens (JWT)
* BCrypt
* Maven
* Gradle
## Getting Started
To get started with this project, you will need to have the following installed on your local machine:
* JDK 17+
* Maven 3+
* JDK 21+
* Gradle 8.14+ (or use the bundled Gradle Wrapper `./gradlew`)
To build and run the project, follow these steps:
@ -28,7 +29,7 @@ To build and run the project, follow these steps:
* Clone the repository: `git clone https://github.com/ali-bouali/spring-boot-3-jwt-security.git`
* Navigate to the project directory: cd spring-boot-security-jwt
* Add database "jwt_security" to postgres
* Build the project: mvn clean install
* Run the project: mvn spring-boot:run
* Build the project: `./gradlew build`
* Run the project: `./gradlew bootRun`
-> The application will be available at http://localhost:8080.

View File

@ -46,8 +46,7 @@ public class ApplicationConfig {
@Bean
public AuthenticationProvider authenticationProvider() {
DaoAuthenticationProvider authProvider = new DaoAuthenticationProvider();
authProvider.setUserDetailsService(userDetailsService());
DaoAuthenticationProvider authProvider = new DaoAuthenticationProvider(userDetailsService());
authProvider.setPasswordEncoder(passwordEncoder());
return authProvider;
}

View File

@ -17,7 +17,7 @@ spring:
application:
security:
jwt:
secret-key: ${SECRET_KEY}
secret-key: ${JWT_SECRET_KEY}
expiration: 86400000 # a day
refresh-token:
expiration: 604800000 # 7 days