반응형 전체 글1091 [JAVA] Header 정보 가져오기 [JAVA] Header 정보 가져오기 import import=java.util.Enumeration Enumeration headerEnum = request.getHeaderNames();while(headerEnum.hasMoreElements()){ String headerName = (String)headerEnum.nextElement(); String headerValue = request.getHeader(headerName);} 2019. 5. 29. [spring boot] context-path, 포트 설정 [spring boot] context-path, 포트 설정 프로젝트를 만들고 실행하게 되면 기본 설정인 http://localhost:8080/ 으로 접속하면 초기 화면이 나온다. context-path 추가 src/main/resources/application.properties server.servlet.context-path=/www 설정시 http://localhost:8080/www로 접속가능. server.port=80 설정시 http://localhost/www로 접속가능. 그 외 spring boot 에서 제공하는 많은 option들은 아래 링크에서 확인하면 된다. https://docs.spring.io/spring-boot/docs/current/reference/html/commo.. 2019. 5. 23. [Postgresql] 시퀀스 초기화 [Postgresql] 시퀀스 초기화 ALTER SEQUENCE "시퀀스이름" RESTART WITH 1; 2019. 5. 20. [Postgresql] 현재 접속 session 확인 및 종료 [Postgres] 현재 접속 session 확인 및 종료 서버일 경우 postgres 접속하고 DB툴 일 경우 바로 쿼리 실행. $ select * from pg_stat_activity where datname = '조회하고자하는 DATABASE명'; 해당 필드들이 나오고 종료하고자 하는 PID 넣고 쿼리를 실행. select pg_terminate_backend(PID); 해당 세션이 종료된다. 2019. 5. 16. 이전 1 ··· 9 10 11 12 13 14 15 ··· 273 다음 반응형