어수선한 다람쥐 창고

  • 홈
  • 태그
  • 방명록

절대경로 1

Java의 File Path 상대경로

Path를 나타내는 방법에는 절대경로와 상대경로가 있다. 절대경로 : 시스템 루트 디렉터리에서부터 시작해 모든 경로를 표시한다. 상대경로 : 특정한 디렉터리(현재 디렉터리)를 기준으로 위치를 표시한다. 그렇다면, 자바(JVM)는 어디를 상대경로의 기준 디렉터리로 인식하는 걸까? System.getProperty("user.dir"); 시스템 프로퍼티를 읽어보면 바로 알 수 있다. intelliJ에서는 프로젝트 내부에 들어있는 파일들의 상대경로를 간단히 구해올 수 있다. 우클릭 -> Copy Path -> Copy Path... -> 4. Path from repository root

software engineering/web 2020.04.06
1
더보기
프로필사진

도토리 줍는 중

  • 전체 (38)
    • today I thought (3)
    • software engineering (33)
      • ready queue (0)
      • introduction (0)
      • web (20)
      • network (1)
      • os (0)
      • database (4)
      • devops (5)
      • design pattern (0)
      • etc (3)
    • inspiration (2)
      • lesson (1)
      • activity (0)
      • art (0)
      • reading (1)

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Archives

Tag

A component is changing a controlled input of type text to be uncontrolled., 쿼리 검색, ERROR: Maven JVM terminated unexpectedly with exit code 137, 안드로이드 왕초보, ERR_UPLOAD_FILE_CHANGED, maven, 리액트, 파괴적인 명령어, 애플❤️, Java, JPA, REACT_APP_, query, 스프링 만세, JavaScript, PostgreSQL, AOP, react.js, Spring, View 생성 쿼리,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바