java.nio.file.accessdeniedexception
파일을 업로드하려는데 만났다.
말 그대로 파일 접근이 거부되는 에러, 즉 파일 소유권 권한문제이다.
파일이 root 권한이기 때문에, 사용자로 변경해줘야 한다.
직접 해당 파일 경로 폴더 > 속성> 권한을 바꾸거나,
chown -R 사용자 : 사용자[폴더 이름] (폴더 안의 모든 파일들의 소유권 변경)
위 명령어를 사용하면 에러가 해결된다.
'에러일기' 카테고리의 다른 글
org.springframework.dao.EmptyResultDataAccessException (0) | 2024.11.03 |
---|---|
java.sql.SQLIntegrityConstraintViolationException (0) | 2024.10.28 |
org.springframework.web.multipart.MultipartException (0) | 2024.10.21 |
the server responded with a status of 415 () (0) | 2024.10.14 |
[Spring] org.springframework.beans.factory.BeanDefinitionStoreException 에러 (0) | 2024.10.08 |