본문 바로가기

WEB26

[spring boot] AWS 배포 테스트하면서 부딪혔던 문제점, 해결에 참고한 포스팅 정리2 [EC2 Amazon Linux1] CodeDeploy 설치 과정에서 ruby 설치 후 sudo ./install auto 위 문구를 실행했는데, /usr/share/ruby3.2/logger/log_device.rb:83:in `exist?': no implicit conversion of Array into String (TypeError) if File.exist?(path) ^^^^ from /usr/share/ruby3.2/logger/log_device.rb:83:in `set_dev' from /usr/share/ruby3.2/logger/log_device.rb:18:in `initialize' from /usr/share/ruby3.2/logger.rb:587:in `new' from /.. 2023. 3. 24.
[spring boot] AWS 배포 테스트하면서 부딪혔던 문제점, 해결에 참고한 포스팅 정리 1. EC2 Putty SSH 연결시 Putty key format too new 에러 표시 문제 * 일단 Putty 버전이 너무 낮은 경우 최신 버전으로 업데이트를 하자. [참고 포스팅] https://www.linuxtutorials.org/putty-key-format-too-new/ Putty key format too new I was trying to connect to my Ubuntu server using SSH private key. For that I already converted my id_rsa file from ~/.ssh directory to a ppk file using PuTTYgen, but after loading my .ppk key I get below error.. 2023. 3. 21.
[spring] 에러: Error creating bean with name 'dataSource' defined in ServletContext resource ... Driver net.sf.log4jdbc.sql.jdbcapi.DriverSpy claims to not accept jdbcUrl Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Bean instantiation via constructor failed; ... Driver net.sf.log4jdbc.sql.jdbcapi.DriverSpy claims to not accept jdbcUrl, ... 분명 문제가 없는 프로젝트인데 git에서 받아 import 후 톰캣 서버에서 실행을 하니 위와 같은 에러를 뱉어냈다. jdbc 설정이나 Java build path에는 문제가 없는 상황이었는데, Deployment Assembly에 mssql jar파일을 추가한 후 해결하였다. 2022. 12. 15.
[Spring] 에러: @ResponseBody Json 응답 시 한글 깨짐 에디터에 적용된 이미지 업로드 기능 사용 시 업로드 후 게시물에 보여줄 이미지 명을 return 받는 json 형태의 데이터에서 한글명으로 된 이미지는 한글 부분이 '????'로 나타나는 것을 확인했다. 흠,, 응답 헤더에 Content-Type을 명시하면 되는 문제인가 했는데, 생각보다 훨씬 간단한 방법으로 처리했다. @ResponseBody @PostMapping(value = "/imageUpload", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public ResponseEntity imageUpload(MultipartRequest request, @RequestParam(value="uploadDir") String uploadDir){ ... }.. 2022. 12. 2.