일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 스프링
- Spring
- annotation
- 오류
- 스프링테스트
- filterexpression
- compositekey
- 도메인
- 자바스프링
- partiql
- awscli
- markerinterface
- 로드밸런서
- IdClass
- query
- 테스트코드
- MockMvc
- 자바
- secondaryindex
- 개발
- 다이나모디비
- Java
- testresttemplate
- Springsecurity
- javaspring
- AWS
- Route53
- DynamoDB
- EmbeddedId
- awscloud
- Today
- Total
목록오류 (2)
아장아장 개발 일기
에러내용 아래의 에러메세지가 뜨며 프로그램 실행에 실패했다. org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.fasterxml.jackson.datatype.jsr310.JavaTimeModule]: Unresolvable class definition; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ser/std/ToStringSerializerBase at org.springframework.beans.BeanUtils.instantiateClass (BeanUtils.java:149) at org.spr..
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..