https://jojoldu.tistory.com/300
SpringBoot & AWS S3 연동하기
안녕하세요? 이번 시간엔 SpringBoot & AWS S3 연동하기 예제를 진행해보려고 합니다. 모든 코드는 Github에 있기 때문에 함께 보시면 더 이해하기 쉬우실 것 같습니다. (공부한 내용을 정리하는 Github와
jojoldu.tistory.com
오늘 게시판에 이미지를 첨부하기 위해서 위와같은 예제를 학습하고 있었다.
하지만 오늘도 어김없이 오류를 만났다.
<오류의 종류>
Cannot resolve reference to bean 'amazonS3' while setting constructor argument
<오류가 난 원인>
There is no EC2 meta data available, because the application is not running in the EC2 environment
EC2 메타 데이터가 존재하지 않아서이다.
<오류 해결책>
main/resources 경로에 application.properties 파일을 생성한다.
cloud.aws.stack.auto=false
cloud.aws.region.static=ap-northeast-2
위 명령어를 입력한다.
<참조 자료>
https://stackoverflow.com/questions/49143763/initializing-aws-with-springboot
initializing AWS with Springboot
I am trying to initialize and build a Springboot Application that uses AWS dependencies on Net Beans, however, I am having a problem building the project. After resolving the errors after creating ...
stackoverflow.com
'오늘만난오류' 카테고리의 다른 글
Fail : 문자열을 날짜 및/또는 시간으로 변환하지 못했습니다. (0) | 2022.01.10 |
---|---|
The bucket does not allow ACLs (0) | 2022.01.08 |
MSSQL 복원시 에러 (0) | 2022.01.04 |
TypeError: 'int' object is not subscriptable (0) | 2022.01.03 |
org.apache.catalina.LifecycleException: Protocol handler start failed (0) | 2022.01.01 |