본문 바로가기
반응형

Web Programing!/JAVA / JSP85

[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.
[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.
[spring boot] 이클립스, 메이븐 연동 [spring boot] 이클립스, 메이븐 연동 Maven Repository 경로 변경 기본 Maven Repository 경로는 ${user.home}/.m2/repository 이것을 다른 경로로 변경. 1. C:\dev\apache-maven-3.5.4\repository 폴더 생성. 2. C:\dev\apache-maven-3.5.4\conf settings.xml에서 주석처리 되어있는 를 찾아 주석을 풀던가 추가. 3. Window > Preference > Maven > User Settings User Settings 부분에 C:\dev\apache-maven-3.5.4\settings.xml 선택. 4. maven으로 빌드를 하게되면 target/classes 폴더에 클래스 파일이 생성된.. 2019. 4. 19.
반응형