Gateway 스프링 시큐리티 적용 문서 추가

This commit is contained in:
roy-zz
2022-04-22 11:50:59 +09:00
parent 65da5e001e
commit 33198bd9bc
18 changed files with 461 additions and 108 deletions

View File

@@ -3,6 +3,8 @@ package com.roy.springcloud.userservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
@EnableEurekaClient
@SpringBootApplication
@@ -12,4 +14,9 @@ public class UserServiceApplication {
SpringApplication.run(UserServiceApplication.class, args);
}
@Bean
public BCryptPasswordEncoder bCryptPasswordEncoder() {
return new BCryptPasswordEncoder();
}
}