[spring] 회원가입시 ROLE_USER에서 ROLE_ADMIN, ROLE_USER 동시에 가지도록 바꾸기


[spring] 회원가입시 ROLE_USER에서 ROLE_ADMIN, ROLE_USER 동시에 가지도록 바꾸기

회원가입시 ROLE_USER 만 가지도록 코드 package uha.jwttest.service; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.RequestBody; import uha.jwttest.dto.ExcelDto; import uha.jwttest.dto.UserDto; import uha.jwttest.entity.Authority; import uha.jwttest.entity.User; import uha.jwttest.entity.UserRepository; import uha.jwttest.exception...


#ADMIN #ROLE #ROLE_ADMIN #ROLE_USER #spring #SPRING_SECURITY #USER

원문링크 : [spring] 회원가입시 ROLE_USER에서 ROLE_ADMIN, ROLE_USER 동시에 가지도록 바꾸기