-
2021.08.15 기록장TIL 2021. 8. 14. 23:22
ToDo
- 알고리즘 문제
- 토비의 스프링
Done
- 스프링 시큐리티
Weekly goal
- 책 읽기
- 토비 스프링 코딩
- 7월 회고 쓰기
특정 권한을 가진 유저만 특정 url에 접근하게 하려면
hasRole을 사용한다. 앞에 prefix로 Role_이 붙기에 뒤에만 적으면 된다.
https://stackoverflow.com/questions/54533441/hasrole-in-spring-security-does-not-work-properly
hasRole() in spring security does not work properly
I try to do roles in my application. But I have a message all the time. "status": 403, "error": "Forbidden", "message": "Forbidden", In database I have column role and values USER or ...
stackoverflow.com
권한 목록에 업데이트를 시켜주고 나서의 일이다.
커스텀 빈 밸리데이션은 test를 어떻게 할까?
Validation을 통해 진행하는데 오류가 나면 set의 쌓인다. set의 size를 보고 통과되었는지 안됬는지 알 수 있다.
어떻게 돌아가는지는 잘 모르겠어서 나중에 다시 확인해봐야겠다.
How to test validation annotations of a class using JUnit?
I need to test the validation annotations but it looks like they do not work. I am not sure if the JUnit is also correct. Currently, the test will be passed but as you can see the specified email a...
stackoverflow.com
'TIL' 카테고리의 다른 글
2021.08.17~18 기록장 (0) 2021.08.16 2021.08.16 기록장 (0) 2021.08.15 2021.08.14 기록장 (0) 2021.08.14 2021.08.13 기록장 (0) 2021.08.12 2021.08.12 기록장 (0) 2021.08.11