전체 글 6

[Poetry] Pycharm Interpreter 설정

Poetry 환경을 사용한 Pycharm Interpreter 설정에 대해 알아보겠습니다. 환경- mac m1 (Sequoia)- Python 3.12.4- Poetry 1.8.4- Pycharm 2024.02 먼저, 로컬 환경에 Poetry 설치가 필요하므로 다음과 같이 설치해줍니다. homebrew 설치brew install poetry직접 설치curl -sSL https://install.python-poetry.org | python3 - 설치한 Poetry Path 설정이 필요하며, 위와 같이 명령어 실행시 Poetry's bin directory 를 확인하실 수 있습니다.해당 경로를  참고하여 Path 설정을 해주시면 됩니다.# ...# It will add the `poetry` comman..

Python 2024.11.13

[git] .gitignore 적용이 안되는 경우 해결법

git 을 사용하다 보면, .gitignore가 제대로 적용되지 않는 경우가 발생합니다. # .gitignore 란?: 민감한 정보를 담은 파일 등 git 형상관리에서 제외할 파일을 관리 합니다.해당 서비스 사용시 각 환경에 맞는 gitignore을 자동으로 생성해주기도 합니다. gitignore.ioCreate useful .gitignore files for your projectwww.toptal.com   .gitignore 파일 변경 후 commit 후에도 적용되지 않는 경우는 git 캐시가 원인일 수 있으며, 이때 git 캐시를 삭제 해줄 경우 정상적으로 적용됩니다. git 캐시 삭제는 다음 명령어로 해결할 수 있습니다.git rm -r --cached .# 캐시 삭제 후 add/commit ..

오늘의 Logs 2024.09.30

[Mac m1-Sequoia] mysqlclient 오류 (pkg-config)

발생 환경- mac m1- Sequoia 15.0- Python 3.12.4- pip 24.2 django 설정 중 mysql 연결 과정에서 mysqlclient 설치시 발생한 에러와 해결법 공유드립니다. ( 에러 로그 내용 더보기 참고 )더보기(venv) ➜ ✗ pip install mysqlclientCollecting mysqlclient Using cached mysqlclient-2.2.4.tar.gz (90 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to buil..

오늘의 Logs 2024.09.28

[Spring Security] Spring Security 란?

대부분의 서비스 운영시 인증, 인가 처리가 필요하며, 이에 대해 Spring에서 제공하는 프레임워크인 Spring Security에 대해 알아보겠습니다.Spring SecuritySpring 기반 애플리케이션의 보안(인증, 인가, 권한 등)을 담당하는 스프링 하위 프레임워크이며, 인증과 권한에 대해 Filter 흐름에 따라 처리하고 있습니다. 보안과 관련하여 많은 기능을 제공해주고 있어 개발 시 보안 로직을 직접 구현하지 않아도 된다는 장점이 있습니다. Spring Security 적용 시 Java 8 (혹은 이상) 환경이 필요하므로 프로젝트 구성시 버전에 유의해야 합니다.  인증(Authorizatoin), 인가(Authentication) 인증: 사용자가 누구인지 확인하는 절차. 로그인과 같은 절차인..

Java/Spring Boot 2024.08.05

Spring Boot 프로젝트 생성 (Intellij, Spring Initializr)

Spring Boot 프로젝트 생성시 대표적인 2가지 방법 IntelliJ Spring Initializr Spring Initializr Spring Initializr (https://start.spring.io/) 의 경우, spring boot 프로젝트를 빠르게 생성할 수 있으며 필요한 Dependencies 를 설정할 수 있습니다. 사이트 진입시 현재 stable 버전으로 선택되어 있으며, Snapshot의 경우 베타 버전으로 유의해야 합니다. Project Metadata Group : 도메인명 Artifact : 빌드 결과물 Name : 프로젝트명 (일반적으로 Artifact와 동일하게 해준다.) Description : 설명 Package name : 패키지 이름 (Group과 Artifa..

Java/Spring Boot 2023.11.07