반응형 Kudo의 삶1091 [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. 9. 20. [JAVA] Header 정보 가져오기 [JAVA] Header 정보 가져오기 import java.util.EnumerationEnumeration headerEnum = request.getHeaderNames();while(headerEnum.hasMoreElements()){ String headerName = (String)headerEnum.nextElement(); String headerValue = request.getHeader(headerName);} 2019. 9. 19. [JAVA] 시작과 끝 시간 측정 long start, end;start = System.currentTimeMillis(); end = System.currentTimeMillis();count = (int)(end - start) / 1000;System.out.println("시간 : " + count + "초"); 2019. 9. 18. [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. project -> 오른쪽 마우스properties 선택pom.xml 삭제 2019. 9. 17. 이전 1 ··· 7 8 9 10 11 12 13 ··· 273 다음 반응형