vi에  copy & paste할때 들여쓰기가 되어 계단형식으로 되는 경우가 있다.


이때 vi에서 아래 명령어를 이용해서 자동 들여쓰기를 끄면 된다.


#자동들여쓰기 끄기

:set paste


#다시 원복 하려면

:set nopaste

or

:set paste!



'linux' 카테고리의 다른 글

grep binary  (0) 2018.08.31
Tomcat console log UTF-8 설정.  (0) 2016.05.27
apache에서 tomcat 설정.  (0) 2016.03.29
curl 이용하기  (0) 2015.09.03
리눅스 file 사이즈 0 으로 만들기  (0) 2015.07.31
Posted by 무세1
,

Git remote 저장소 변경

git 2018. 1. 12. 15:59

Git remote 저장소를 변경시키는 명령어


>git remote -v

origin http://github.com/repo_test1.git (fetch)

origin http://github.com/repo_test1.git (push)


>git remote set-url origin http://github.com/repo_test2.git


>git remote -v

origin http://github.com/repo_test2.git (fetch)

origin http://github.com/repo_test2.git (push)


'git' 카테고리의 다른 글

Git subtree 이용하기.  (0) 2018.01.03
Posted by 무세1
,

Spring Filter 순서 설정.

java 2018. 1. 11. 00:40

Springboot를 이용해서 프로젝트 진행중에 CORS Filter와 인증용 Auth Filter를 만들었다.


필터가 실행되는 순서를

CORS 실행후 Auth 필터를 실행하고 싶었다. 


FilterRegisterBean을 통해 순서를 실행하는 방법도 있지만,  

@Order Annotation을 통해서 간단히 설정할수 있었다.


@Component

@Order(1)

public class CorsFilter implement Filter {

..........

}


@Component

@Order(2)

public class AuthFilter implement Filter {

..........

}



Posted by 무세1
,