본문 바로가기
개발일기

학원 수업 59일차 221114

by hhana 2023. 4. 27.

9-10
https://www.thymeleaf.org/doc/articles/springsecurity.html

<html xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

 

<div sec:authorize="isAuthenticated()">
  This content is only shown to authenticated users.
</div>
<div sec:authorize="hasRole('ROLE_ADMIN')">
  This content is only shown to administrators.
</div>
<div sec:authorize="hasRole('ROLE_USER')">
  This content is only shown to users.
</div>


https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html
스프링 시큐리티 / 서블릿 애플리케이션 / 권한 부여 / HTTP 요청 승인

스프링 시큐리티 / 서블릿 애플리케이션 / 권한 부여 / Expression-Based Access Control
https://docs.spring.io/spring-security/reference/servlet/authorization/expression-based.html

 

 

  • 10-11

프로젝트명 : springWebSecurity03
https://docs.spring.io/spring-security/reference/servlet/configuration/java.html

url보안
https://docs.spring.io/spring-security/reference/servlet/configuration/java.html#jc-httpsecurity

 

 

  • 11-12

DaoAuthenticationProvider
https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/dao-authentication-provider.html

(/springWebSecurity03/src/main/java/com/green/nowon/security/SecurityConfig.java)
csrf? https://docs.spring.io/spring-security/reference/features/exploits/csrf.html

thymeleaf csrf token spring
https://www.baeldung.com/csrf-thymeleaf-with-spring-security
https://docs.spring.io/spring-security/reference/servlet/exploits/csrf.html

enum?

 

 

  • 12-1

JPA @ElementCollection
https://prohannah.tistory.com/133
RDB에는 컬렉션과 같은 형태의 데이터를 컬럼에 저장할 수 없기 때문에, 별도의 테이블을 생성하여 컬렉션을 관리해야한다.
이때 컬렉션 객체임을 JPA에게 알려주는 어노테이션이 @ElementCollection이다.

(/springWebSecurity03/src/main/java/com/green/nowon/security/MyUserDetails.java)
stream 사용방법?

https://docs.spring.io/spring-security/reference/servlet/architecture.html

 

 

  • 2-3

https://docs.spring.io/spring-security/reference/servlet/exploits/csrf.html#servlet-csrf-include-form-attr

 

 

  • 3-4

@DynamicUpdate? //수정할때 쿼리가 풀로 안들어가고 수정된 데이터만 반영되는 것

[JPA] Spring JPA CascadeType 종류
https://data-make.tistory.com/668

 

 

  • 4-5

stream filter
Java - Stream의 filter(), map(), flatMap() 사용 방법
https://codechacha.com/ko/stream-filter/

 

 

  • 5-6

게시판 글 확인

 

 

 

'개발일기' 카테고리의 다른 글

학원 수업 63일차 221118  (0) 2023.04.27
학원 수업 62일차 221117  (0) 2023.04.27
학원 수업 61일차 221116  (0) 2023.04.27
학원 수업 60일차 221115  (0) 2023.04.27
학원 수업 58일차 221111  (0) 2023.04.27
학원 수업 57일차 221110  (0) 2023.04.27
학원 수업 56일차 221109  (0) 2023.04.27
학원 수업 55일차 221108  (0) 2023.04.27

댓글