wuchimedes | 079c163 | 2025-04-02 22:01:20 +0800 | [diff] [blame] | 1 | package com.example.g8backend.config; |
2 | |||||
3 | import org.springframework.context.annotation.Bean; | ||||
4 | import org.springframework.context.annotation.Configuration; | ||||
5 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; | ||||
6 | |||||
7 | |||||
8 | @Configuration | ||||
9 | public class SecurityConfig { | ||||
10 | @Bean | ||||
11 | public BCryptPasswordEncoder passwordEncoder() { | ||||
12 | return new BCryptPasswordEncoder(); | ||||
13 | } | ||||
14 | } |