전체 글(850)
-
PostgreSQL 암호화 확장 모듈 추가
참조https://kwomy.tistory.com/65 [PostgreSQL] 암호화 함수 사용 (pgcrypto)1. 확장 모듈 설치 create extension pgcrypto; enterprisedb 계정으로 해당 모듈을 설치할 스키마 선택 후 실행. 2. Raw encryption functions convert_to/convert_from : 문자열 변환/복원 encode/decode : 16진수 인코딩/디코딩kwomy.tistory.com 데이터베이스 선택 > 확장모듈 오른쪽 마우스 클릭 > 만들기 > 확장모듈...이름: pgcryto 선택 > 저장암호화select encode(encrypt(convert_to('test','utf8'),'ENC_KEY','aes'),'hex'); 복호화se..
2024.08.13 -
Spring boot Security 객체 참조
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();UserDetails userDetails = (UserDetails)principal;log.debug(userDetails.getUsername());
2024.08.13 -
Local과 Server 소스가 불일치 할때, git add -f
Local에는 파일이 있는데, 서버로 push를 하면, 일부 파일이 누락되는 경우가 있음원인은 정확히는 모르나, Local에서 파일명을 강제로 변경한 이후에 push를 하면 서버에서 해당 파일이 사라지는 것 같음그런 경우, command창에서 강제로 누락된 파일 또는 디렉토리를 add하여 push해야 # 누락된 파일이 push 대상에 보이지 않음git status# 특정 디렉토리를 push 대상에 등록git add -f ./src/main/resources/static# 등록한 파일 또는 디렉토리가 대상에 포함됨을 확인git status# commit 및 pushgit commit -m "누락된 부분 등록"git push
2024.08.12 -
Spring boot Security blocked:mixed-content 에러
Web - WAS 구조에서 Spring boot에 호출되는 페이지가 없을 경우, Spring boot Security가 redirect하면서 해당 에러가 발생WAS만 있는 Local에서는 이런 에러가 발생하지 않음html에 아래 내용을 추가하면 해당 에러는 발생하지 않지만, 302 redirect 에러가 발생함
2024.08.11 -
Spring boot Security 302 에러
찾는 파일이 없는 경우에는 302에러가 발생함로컬에서 정상적으로 작동하는 소스가 서버에 반영할 때, 302에러가 발생함확인 결과, 서버로 이전하면서 해당 파일이 없어서 302 에러가 발생함실제로 Security 때문에 redirect하는 것과 파일이 없어서 redirect하는 것을 구분해야 함
2024.08.11 -
Spring boot 정적 파일 위치 셋팅
기본 위치/resources/static/resources/public설정 변경spring: mvc: static-path-pattern: /** web: resources: static-locations: "classpath:/static/"
2024.08.11