SY 개발일지
article thumbnail
[Java/Spring] org.springframework.web.util.pattern.PatternParseException: No more pattern data allowed after {*...} or ** pattern element 에러 발생
에러 2024. 1. 16. 20:05

스프링부트 2.6 으로 업그레이드 시 요청 경로를 ControllerHandler에 매칭시키기 위한 전략의 기본 값 즉, spring.mvc.pathmatch.matching-strategy 기본 값이 ant_path_matcher 에서 path_pattern_parser 로 변경되어 발생한 에러이다. application.yml에 spring: mvc: pathmatch: matching-strategy: ant_path_matcher 을 추가하여 전략을 바꾼다. 다음 블로그를 참고하였다. https://haenny.tistory.com/297 SpringBoot 2.5 → 2.6 업그레이드 시No more pattern data allowed after {*...} or ** pattern eleme..

[Java/Spring] org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis
에러 2024. 1. 16. 20:04

redis를 설치하지 않아서/혹은 설정을 잘못하여 생긴 오류이다! redis를 설치/설정 수정해주면 끝 !

article thumbnail
[React-Native/WebView] WebView에서 소셜로그인 띄우면 Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -6, "description": "net::ERR_CONNECTION_REFUSED", "loading": false, "target": 93, "title": "Webpage not ..
에러 2024. 1. 16. 20:02

소셜 로그인 시 더보기 Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -6, "description": "net::ERR_CONNECTION_REFUSED", "loading": false, "target": 93, "title": "Webpage not available", "url": "http://localhost:8080/oauth2/authorization/kakao"} 라는 에러가 발생한다. 내 경우에는 네트워크 방화벽 문제였는데, 기본적으로 react-native의 경우 url로 접근할 수 없기 때문에 해당 경로로 이동할 수 없는 에러인 경우가 많다. 네트워크 방화벽 문제의 경우에는 s..

article thumbnail
Spring Security login 시 Login with OAuth 2.0 뜨는 오류
에러 2024. 1. 16. 19:58

소셜 로그인을 하려고 하자 이러한 에러가 발생했는데, 이 에러는 내가 입력한 주소가 잘못된 주소이기 때문에 나타난다. html문서의 Kakao 경로를 확인하면 임을 확인할 수 있는데, spring security에서 oauth를 하기 위한 경로는 /oauth2/authorization/{registrationId} 이기 때문이다. 따라서 링크 주소를 위처럼 http://localhost:8080/oauth2/authorization/kakao 로 보내면 스프링 시큐리티를 통해 로그인할 수 있다.

[Java/Spring] 소셜 로그인(kakao) 시 java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap') 에러 발생
에러 2024. 1. 16. 19:55

이 에러는 (String)을 통해 형변환을 해준 것을 String.valueOf를 이용하여 형변환을 해주면 된다. 내 코드의 경우 .profileImage((String) attributes.get("profile_image")) 을 .profileImage(String.valueOf(attributes.get("profile_image"))) 로 변경하여 해결하였다. 다음의 블로그를 참고하였다. https://javamin.tistory.com/369 [Java/자바] java.lang.Integer cannot be cast to java.lang.String 해결 방법 java.lang.Integer cannot be cast to java.lang.String 위의 오류 발생 원인은 mybatis..

[ERROR/수정]fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
에러 2022. 8. 2. 11:55

git clone을 하려고 하니까 이러한 에러가 발생하였다. fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). git init을 안해서 발생한 에러이다. git init을 하면 정상적으로 git clone이 된다. git init