Skip to content

Conversation

@GuDaeWoong
Copy link

No description provided.

에러내용 : 데이터베이스 연결이 읽기 전용으로 설정되어 있어서 데이터를 수정할 수 없다
Connection is read-only. Queries leading to data modification are not allowed
@transactional 을 사용함으로써 읽기 전용 모드를 해제할 수 있다
날씨, 날짜 요청
jpql 없는 경우도 제어
단건 조회시 실패하여 예외가 발생해야하는데
정상적으로 실행하는 코드로 되어있어 수정
aop로깅 api 호출 전으로 변경
FETCH 를 사용하여 해결
jpql 주석처리
entityManager 빈 등록
1. build.gradle : Spring Security 라이브러리 추가
2. JwtFilter : Spring Security의 OncePerRequestFilter로 대체
-> FilterConfig 제거
3. @Auth : Spring Security의 @AuthenticationPrincipal을 사용
-> WebConfig, AuthUserArgumentResolver 제거
4. SecurityConfig: JWT 인증 필터 등록 및 권한 설정 추가
  → "/auth/**" 경로는 인증 없이 허용,
    "/admin/**"는 ADMIN 권한만 접근 허용
addFilterBefore 위치 수정 및 주석 제거
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant