본문 바로가기

전체 글252

프로젝트에서 메일발송 시 Authentication failed; nested exception is javax.mail.AuthenticationFailedException 에러 스켈레톤 코드를 받아서 메일주소와 비밀번호를 내껄로 변경해줬는데 에러가 발생했다. Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials j3-20020aa78003000000b0064d74808738sm4789535pfi.214 - gsmtp ➡️원인 구글이 보안 관련하여 막아놓아서 발생한 것 ➡️해결방법 1. 보안수준이 낮은 앱의 액세스 허용 2. 앱 비밀번호 설정해서 그 비밀번호를 프로젝트 p.. 2023. 10. 9.
인텔리제이에 aws 우분투에 있는 mariaDB연결 에러 , can't connect to server on 에러 - 방화벽 문제 과정 1. pom.xml에 db의존성 추가 org.mariadb.jdbc mariadb-java-client runtime 2. MariaDB에 데이터베이스(인스턴스)와 계정 설정 - 우분투 원격접속 ssh ubuntu@우분투 탄력 IP주소 - mariadb 접속 >mysql -u root -p - db인스턴스와 계정 생성 >create database minicampus; >create user ‘minicampus_user’@’%’ identified by ‘soni’; >flush privileges; >grant all privileges on minicampus.* to ‘minicampus_user’@’%’ identified by ‘soni’; 3. application.yml에 db 접속 .. 2023. 10. 9.
윈도우 docker 설치 후 실행 시 Docker Deskto - WSL kernel version too low 에러 ➡️원인 wsl의 버전이 낮아서 일어나는 문제 ➡️해결방법 windows powershell 에서 wsl --update입력 정상 실행 ! ! 2023. 10. 8.
스프링 핵심가이드) 북스터디 3주차 : 06장 06 데이터베이스 연동 6.1 마리아DB설치 실무에서는 root 계정 사용하지 않음. 문자 인코딩 방식 UTF-8 설정 : Use UTF8 as default server's character set에 체크 GUI도구 : HeidisSQL 6.2 ORM ORM(Object Relational Mapping) : 객체 관계 매핑 자바와 같은 객체지향 언어에서 의미하는 객체와 RDB(Relational Database)의 테이블을 자동으로 매핑하는 방법 Persistance : 영속성. 데이터를 생성한 프로그램이 종료되어도 데이터는 남아있는 것 -> DB Persistance Framework : 영속성을 가진 DB와 Spring Boot를 이어주는 것 - 종류 : SQL Mapper, ORM - SQL M.. 2023. 10. 8.
스프링 security 작성 후 Application 구동 안 하는 문제 에러 전체 더보기 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-10-08 04:16:47.077 ERROR 21128 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to sta.. 2023. 10. 8.
윈도우에서 base64 인코딩 하는 방법 1. 인코딩 할 문자열 t.txt 파일에 저장 2. 터미널에 아래 명령어 입력 >certutil -encode t.txt out.b64 3. 생성된 .b64파일을 메모장으로 열어보면 문자열을 인코딩한 값이 저장되어있다. 2023. 10. 8.
윈도우에서 Redis 설치하기 https://redis.io/docs/getting-started/installation/install-redis-on-windows/ Install Redis on Windows Use Redis on Windows for development redis.io 처음 이 사이트에서 윈도우 옵션으로 들어와서 프롬포트에 설치하려고 했는데 잘 안 됐다. 애초에 cmd 문법이 ubuntu꺼여서 다른 방법을 찾아보았다. 1. Microsoft redis Github 접속 - 우측 Releases 들어가기 https://github.com/microsoftarchive/redis/releases Releases · microsoftarchive/redis Redis is an in-memory database t.. 2023. 10. 7.
maven프로젝트 실행 시 java.lang.IllegalStateException 오류 오류 전체 java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-2.5.4.jar:2.5.4] at org.springframework.context.annotation.ConditionEva.. 2023. 10. 4.
인텔리제이 깃허브 master에서 main으로 변경 ➡️문제 상황 인텔리제이 프로젝트에서 연결된 리포지토리의 default 브랜치의 이름을 main으로 바꿨다. 커밋&푸시를 하면 자꾸 master브랜치가 새로 생겨서 pull request를 통해 main으로 merge 해줘야했다. ➡️해결 방법 깃허브의 브랜치 이름을 먼저 main으로 바꾸고 인텔리제이 프로젝트의 터미널 창에 아래의 코드 차례로 한 줄씩 입력하면 해결 ! git branch -m master main git fetch origin git branch -u origin/main main git remote set-head origin -a > git branch -m [변경전 이름] [변경후 이름] : 로컬의 A브랜치를 B브랜치로 변경 PS C:\spring_prac\fintech> git.. 2023. 9. 30.
728x90