몬그로이

security+jwt 회원가입과 로그인 구현후 발생한 에러 대처 본문

카테고리 없음

security+jwt 회원가입과 로그인 구현후 발생한 에러 대처

Mon Groy 2024. 9. 6. 22:51

Caused by: java.lang.IllegalArgumentException: Illegal base64 character 20

 

라는 에러 발생

 

환경변수에 넣어둔 secretkey가 잘못됐다는 것

 

새로 생성해서 넣음


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

 

라는 에러 발생

 

DB 설정을 yml 에 적지 않아서 발생한 문제였음

 

https://psip31.tistory.com/139

 

Spring Error | Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured

Error 발생 경로 새로운 프로젝트를 하다보면 구성이나 설정이 조금씩 바뀌면서, 이따금 구동하면서 다음과 같은 에러가 발생한다. Failed to configure a DataSource: 'url' attribute is not specified and no embedded

psip31.tistory.com


defaultTarget must start with '/' or with 'http(s)'

 

라는 에러 발생

 

SecurityConfig 클래스의 securityFilterChain 매서드에 정의해 둔

formLogin 의 defaultSuccessUrl (로그인 성공시 이동되는 url) 설정을

미정인 상태였어서 "" 라고 해 뒀더니 발생했던 에러

 

임의로 아무거나 넣어두니 작동 성공