본문 바로가기

개발87

RHEL/CentOS 에 python 2.7, 3.* 설치하기 출처 : https://www.lesstif.com/pages/viewpage.action?pageId=30705072개요CentOS 6 에는 Python 2.6 이 탑재되어 있으며 많은 시스템 유틸리티(Ex: semange 같은 SELinux 관리 유틸)이 기본 설치된 파이썬과 의존 관계에 있습니다. python 으로 만들어진 로그 취합 서비스인 Sentry 는 Python 2.7 이상을 요구하며 다음과 같은 설치 방법이 있습니다. 소스 tarball 을 다운 받아서 컴파일하여 설치rpm 패키지를 구해서 패키지 매니저로 설치 개인적으로는 웬만하면 소스 컴파일을 자제하는 편이지만 python 은 CentOS 에 꼭 필요한 프로그램이며 2번 방식으로 설치할 경우 기본 설치된 python 에 덮어써서 시스템.. 2019. 3. 14.
python: ImportError: No module named bz2 yum install bzip2-develpython3를 다시 컴파일 하여 ./configure make make install 2019. 3. 13.
Spring boot 현재 세션 가져오기 Spring에서 인터셉터나 필터, 컨트롤러 등에서 로그인한 사용자 정보를 가져 오고 싶을 때Authentication auth = SecurityContextHolder.getContext().getAuthentication(); Get the username of the logged in user: getPrincipal()Get the password of the authenticated user: getCredentials()Get the assigned roles of the authenticated user: getAuthorities()Get further details of the authenticated user: getDetails()4가지의 메소드가 있고, 유저이름을 알기위해서 getP.. 2019. 3. 6.
Spring boot application.properties 설명 # ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own application. ^^^# =================================================================== # ----------------------------------------# CORE PROPERTIES# ---------------------------------------- # BANNERbanner.cha.. 2019. 2. 27.