Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- partiql
- Springsecurity
- Route53
- 다이나모디비
- query
- 개발
- EmbeddedId
- AWS
- IdClass
- 로드밸런서
- 테스트코드
- javaspring
- 도메인
- 오류
- 자바스프링
- secondaryindex
- annotation
- Spring
- DynamoDB
- filterexpression
- MockMvc
- awscli
- testresttemplate
- Java
- 스프링
- 스프링테스트
- 자바
- markerinterface
- compositekey
- awscloud
Archives
- Today
- Total
목록Intellij (1)
아장아장 개발 일기
Jar 파일 PathNotFound 오류 해결 방법
IntelliJ에서 프로그램을 실행시켰을땐 잘 찾아지던 file이 Jar파일로 만든후 해당 파일을 찾으려하면 FileNotFound Exception이 발생했다. 검색해보니 이미 여러 사람이 비슷한 오류를 경험한 듯 했다. 왜 IntelliJ에서는 잘 찾아지던게 Jar로 실행시키면 안되는건지 찾아보니, Jar 파일 안의 리소스들은 file이 아닌, stream이기 때문 이라고 한다. (기존 소스) ClassPathResource resource = new ClassPathResource(FilePath); String someText = new String(Files.readAllBytes(Paths.get(resource.getURI()))); (변경후) InputStream resourceStream..
개발/Spring
2022. 10. 21. 16:55