본문 바로가기

IT321

2021-10-19-spring boot 연동 layout : post title : "spring boot 연동" category : Redis 레디스 라이브러리 추가 // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis implementation 'org.springframework.boot:spring-boot-starter-data-redis:2.5.5' yml 파일에 설정 추가 spring: redis: host: localhost port : 6379 // 디폴트 config 파일 생성 @Configuration @EnableRedisRepositories(enableKeyspaceEvents = RedisKeyValueAda.. 2023. 2. 27.
2021-01-06-크롤링 layout : post title : "selenium(크롤링)" category : Python from selenium import webdriver options = webdriver.ChromeOptions() # options.add_argument("--headless") # options.add_argument("--test-type") # options.add_argument("--disable-gpu") # options.add_argument("--no-first-run") # options.add_argument("--no-default-browser-check") # options.add_argument("--ignore-certificate-errors") # options.ad.. 2023. 2. 27.
2021-01-06-가상환경 layout : post title : "venv 가상환경" category : Python .\venv 는 생성하려는 가상환경 이름을 입력하면 된다. python -m venv --system-site-packages .\venv 가상환경 활성화 .\venv\Scripts\activate 호스트 시스템 설정에 영향을 주지 않고 가상 환경 내에 패키지를 설치 및 pip 업그레이드 시작 pip install --upgrade pip pip list # show packages installed within the virtual environment 가상환경 종료 deactivate # don't exit until you're done using TensorFlow 2023. 2. 27.
2021-02-15-싱글쿼터 더블쿼터 차이 layout : post title : "싱글쿼터와 더블쿼터의 차이" category : PHP PHP에서의 싱글쿼터(‘)와 더블쿼터(“)의 차이점은 Linux에서의 싱글, 더블쿼터 사용과 유사한 점이 많다. 다음과 같이 더블쿼터의 경우 더블쿼터 안에 있는 문자열에서 변수 등 치환할 값이 있으면 그를 치환하여 출력한다. 하지만 싱글쿼터의 경우에는 치환할 값을 찾지 않고 그대로 값을 출력한다. 2023. 2. 27.