본문 바로가기
728x90
반응형

spring34

[Lock] 동시성 제어를 위한 JPA Lock 2. 낙관적 락(Optimistic Lock) 격리수준과 잠금 2022.12.06 - [Spring/JPA] - [Lock] 동시성 제어를 위한 JPA Lock 1. 격리수준과 잠금(락) [Lock] 동시성 제어를 위한 JPA Lock 1. 격리수준과 잠금(락) 참고 https://hackernoon.com/optimistic-and-pessimistic-locking-in-jpa [Real MySQL 8.0] https://link.coupang.com/a/GW7Yc https://zzang9ha.tistory.com/381 https://www.baeldung.com/jpa-optimistic-locking https://www.baeldung.com/jpa-pessimistic-locking http twer.tistory.com 참고 http.. 2022. 12. 7.
[Test] DataJpaTest에서 MySQL 설정 문제 MySQL로 DB를 구성하고, application.yml에 설정까지 한 상태에서 테스트를 돌려보니 @DataJpaTest를 실행하려고 했더니 아래와 같은 'Failed to replace DataSource ~~~' 에러가 발생합니다. @DataJpaTest class UserInfoRepositoryTest { @Autowired private UserInfoRepository userInfoRepository; @Test void 정보가져오기(){ List all = userInfoRepository.findAll(); all.forEach(userInfo -> { System.out.println(userInfo.getName()); }); } } 원인 @AutoConfigureTestDat.. 2022. 12. 2.
[Security] 로그인과 권한 설정 주의 : Spring Security 5.7+ (Spring Boot 2.7+)부터는 WebSecurityConfigurer이 Deprecated 되었다. 2022.09.05 - [Spring/Security] - [Security] WebSecurityConfigurerAdapter Deprecated [Security] WebSecurityConfigurerAdapter Deprecated 버전 Java 11 Spring boot 2.7.3 Deprecated Spring Security 5.7.0-M2부터 Deprcated 되었다. (SpringBoot 기준 2.7 이후) WebSecurityConfigurerAdapter : WebSecurityConfigurer의 인스턴스를 생성하여 Abstra.. 2022. 11. 1.
[Security] 스프링 시큐리티의 아키텍처(구조) 및 흐름 Spring Security 스프링 시큐리티리란? 어플리케이션의 보안(인증 및 권한)을 담당하는 프레임워크 Spring Security를 사용하지 않으면 자체적으로 세션을 체크해야 한다. redirect를 일일이 설정해주어야 한다. 로그인 완료 시 다음 화면으로 넘어가기 등 특징 Filter를 기반으로 동작한다. SpringMVC와 분리되어 관리하고 동작할 수 있다. bean으로 설정할 수 있다. Spring Security 3.2부터 XML 설정을 이용하지 않아도 된다. 용어 접근 주체(Principal) : 보호된 대상에 접근하는 유저 인증(Authenticate) : 현재 유저가 누구인지 확인(로그인) 어플리케이션의 작업을 수행할 수 있는 주체임을 증명한다. 인가(Authorize) : 현재 유저의.. 2022. 11. 1.
LIST