에러해결 (6) 썸네일형 리스트형 [SpringBoot] Spring Security configuration 임포트 시 에러 해결 문제 상황 Spring Security를 적용하기위해 Security Config 파일을 생성하던 중이었다. public class SecurityConfig extends WebSecurityConfigurerAdapter { // 상속 클래스 오류! // 생략 } 위처럼 Security 설정을 위한 필수적인 코드를 작성하고 있는데 자꾸 WebSecurityConfigurerAdapter 클래스가 임포트되지 않았다. 계속 빨간 글자로 날 위협하고.. java lib path 추가해준다고 하고 그러는데.. 다 해도 뭔 소용이 없었다. 다른 security 내 library도 안되나 해서 import 해보는데 다 안됐다. implementation 'org.springframework.boot:spring.. [IntelliJ/Spring] 테스트 실행 에러 해결 (Build failed with an exception) intelliJ 환경에서 spring boot로 테스트 코드를 작성 후 실행하였는데 아래와 같은 에러가 발생했다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':test'. > No tests found for given includes: [com.itevent.iteventapi.controller.AccountControllerTest.helloTest](filter.includeTestsMatching) 아래와 같이 해결하였다. Settings > Build, Excecution, Deployment > Build Tools > Gradle Run tests using - [IntelliJ.. [Spring] Bean property '필드명' is not readable or has an invalid getter method 에러 해결 에러 내용 Request 클래스의 validator 에러처리를 추가하고 있었는데 아래와 같은 에러를 발견하였다. Request processing failed; nested exception is org.springframework.beans.NotReadablePropertyException: Invalid property 'nickname' of bean class [AccountUpdateDto.Nickname]: Bean property 'nickname' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? getter/sette.. [SpringBoot] @ExceptionHandler 적용 시 HttpMediaTypeNotAcceptableException 에러 해결 에러를 처리하는 곳에서 에러가 났다...😱 (이것은.. 무한 에러 루프..?) Spring Boot에서 공통 익셉션을 처리하기 위해 @RestControllerAdvice, @ExceptionHandler를 사용하여 개발하고 있었다. 익셉션처리가 잘 되는지 확인하기 위해 service단에서 익셉션을 날렸다. 근데 읭? 원하는 에러가 나기 전에 아래와 같은 에러를 뱉었다. 분명 다른 분들의 글을 총집합하여 예제를 잘 따라한 것 같은데.. 🤷🏻♀️ 해결해보자...! 에러 내용 ExceptionHandlerExceptionResolver : Failure in @ExceptionHandler com.itevent.iteventapi.common.error.ControllerExceptionHandler#ha.. [SpringBoot] h2-console 웹 접근안될 때 해결 방법 Springboot에서 H2를 적용하고, 웹 콘솔 사용여부 true 처리하였는데 웹 접근이 안되는 상황을 겪었다. 찾아보니 원인은 아주 간단하지만 놓치기 쉬운 부분이었다. application.properties 의 h2 적용 상태 # 상단 생략 spring.datasource.url=jdbc:h2:~/test;AUTO_SERVER=TRUE spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password= spring.h2.console.enabled=true spring.h2.console.settings.web-allow-others=true spring.h2.console.pa.. [Git/에러해결] git에서 강제로 push 하기 (error: failed to push some refs to) git에서 강제로 push 하기 $ git push -u origin master 를 써서 push를 시도하려고 했는데 에러에 봉착했습니다. branch를 병합하고 없애고 하는 과정에서 문제가 생겼는지 git에서 에러를 배출하며 push를 막았습니다..ㅠ 데이터가 유실될 수도 있지만 강제로 push 하는 방법으로 해결했습니다.$ git push -u origin +mastermater 앞에 +를 붙여주면 강제로 push할 수 있습니다. 참고 - https://www.hahwul.com/2016/02/coding-git-push-push-error-failed-to.html 이전 1 다음