IT'S DO
article thumbnail
[Spring]535-5.7.8 Username and Password not accepted. For more information, go to error (JavaMailSender)
개발/Spring Framework 2025. 1. 22. 14:45

# 원인 : Spring의 JavaMailSender를 사용할 때,  구글 계정을 이용해 메일을 보낼려고 할때 나타나는 에러.기존에는 메일 발송하기 위해 아이디, 비밀번호만 필요했다면. 2022년 5월 30일 부터 보안 수준 낮은 앱을 지원하지 않음.https://support.google.com/accounts/answer/6010255 보안 수준이 낮은 앱 및 Google 계정 - Google 계정 고객센터2025년 1월부터 보안 수준이 낮은 앱, 서드 파티 앱 또는 사용자 아이디와 비밀번호만으로 로그인하는 기기는 더 이상 Google Workspace 계정에서 지원되지 않습니다. 정확한 날짜는 Google Workspace 업데support.google.com # 해결 방법:1. 메일을 발송하는 계..

[JAVA] Flatmap 사용
개발/JAVA 2025. 1. 14. 16:27

# 사용하는 이유flatMap은 **스트림을 평탄화(flatten)하면서 매핑(mapping)**할 때 가장 적합한 메서드=> "스트림을 평탄화(flatten)" 한다는 의미는, 중첩된 리스트나 스트림 구조를 하나의 연속된 스트림으로 "펼쳐서" 만드는 것. ex) 1)문제List> nestedList = List.of(     List.of("A", "B"),     List.of("C", "D"),     List.of("E") ); ## map만 사용시List> result = nestedList.stream() .map(List::stream) .collect(Collectors.toList());=> System.out.println(result);[java.util.stream.Reference..

article thumbnail
[MongoDB] 기초 설치 및 환경변수와 MongoDB, Shell 실행 방법
DB/MongoDB 2025. 1. 10. 16:04

# MongoDB를 사용하기 위해서 설치할 것 MongoDB 설치 https://www.mongodb.com/try/download/community Try MongoDB Community EditionTry MongoDB Community Edition on premise non-relational database including the Community Server and Community Kubernetes Operator for your next big project!www.mongodb.com  MongoDB Shell 다운로드 받는다.https://www.mongodb.com/try/download/shell Try MongoDB Tools - Download Free HereFree dow..

[error] JPA PostgreSQL via JDBC [오류: 구문 오류, "order" 부근]
error 2025. 1. 9. 11:35

# 에러 : JPA에서 프로젝트 실행할때 테이블이 만들어지는데. 아래 처럼 에러가 날때. create table order (         id bigint generated by default as identity,         order_date timestamp(6) not null,         status varchar(255) check (status in ('PENDING','SHIPPED','DELIVERED','CANCELLED')),         user_id bigint not null,         primary key (id)     )" via JDBC [오류: 구문 오류, "order" 부근   Position: 20] => 이유 : PostgreSQL에서 위와 같은 ..