Dev 39

[Angular] 라우터(Router) unsubscribe

!주의 기록을 위한 포스트입니다. 자세한 설명은 없습니다. 이전포스트 [Angular] SPA URL 변경감지로 라우터 이벤트를 사용했다. https://walkerlab.tistory.com/19 [Angular] SPA URL 변경감지 !주의 기록을 위한 포스트입니다. 자세한 설명은 없습니다. constructor(private router: Router) { router.events.subscribe(val => { // URL(location) 변경시 마다 실행시킬 함수(이벤트) }); } 기본적으로 SPA일 때 페이 walkerlab.tistory.com 하지만 개발 도중 Router event subscribe 로 인해 문제가 있어 특정상황에서 subscribe를 해제해야 했다. 그래서 ngO..

Dev/Angular 2023.01.27

[CentOS7]리눅스 방화벽(firewall) 특정 IP 접근하는 방법

!주의 기록을 위한 포스트입니다. 자세한 설명은 없습니다. // firewall 설치 sudo yum install firewalld // 서버부팅/재부팅 시 자동으로 firewall 실행설정 sudo systemctl enable firewalld sudo systemctl start firewalld // 특정IP에대해 방화벽 해제하기 sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address=허용할 아이피 port port="22" protocol="tcp" accept' // 등록한 IP 해제하기 sudo firewall-cmd --permanent --remove-rich-rule='rule family="ip..

Dev/etc 2023.01.26

[errorlog][http-nio-8080-exec-6] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsExcept..

!주의 본 포스트는 단순 기록하는 포스트입니다. [http-nio-8080-exec-6] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 0] with root cause java.lang.StringIndexOutOfBoundsException: String index out of range: 0 조회 시 ..

Dev/Spring 2020.05.08

[Git] Git remote URL 변경하기 (원격 저장소 변경하기)

Ip나 저장소가 변경되거나 원격저장소를 잘못 지정하는 일로인해 원격 저장소의 URL을 변경이 필요한 때가 있습니다. 그래서 오늘은 Git의 원격 저장소를 변경하는 법을 다뤄보겠습니다. 원격 저장소로부터 클론을 내려받은 폴더로 이동합니다. 그 후 폴더 내에서 우클릭을 한 후 Git Bash Here을 선택해 Git Bash를 실행합니다. Git Bash 에서 git remote -v를 입력 후 실행하면 아래와 같은 결과가 출력됩니다. git remote -v origin http://111.111.111.111/저장소.git (fetch) origin http://111.111.111.111/저장소.git (push) 변경을 위해서는 git remote set -url 을 통하여 원격 저장소를 변경할 수 ..

Dev/etc 2020.03.23

[Spring&Angular] Spring 게시판 만들기 - Angular와 Swagger 연동

!주의 Spring 게시판 만들기 포스트는 개발 기록을 남기는 것에 의의가 있습니다. 포스팅되는 내용대로 꼭 해야 한다는 법은 없습니다. 이 포스트는 이전 포스트에서 이어집니다. 해당 포스트는 개념보다 실전 위주로 작성되어 자세한 설명은 다루지 않습니다. 이번 프로젝트의 핵심인 Angular와 Swagger의 연동에 대해서 다뤄보겠습니다. 먼저 실전위주로 작성되어 있기 때문에 개념이나 자세한 설명은 추후에 보강하겠습니다. 이번 프로젝트에 작성할 기능을 파일을 담을 디렉토리 features를 생성합니다. 생성하는 방법은 아래와 같습니다. 먼저 API에 대응하는 모델을 만들어줄 필요가 있습니다. features 디렉토리 안에 board.model.ts를 작성합니다. //board.model.ts export..

Dev/Project 2020.03.19