Various Error (20) 썸네일형 리스트형 [IntelliJ] 인텔리제이 기본 패키지 인식 불가 에러 System.out까지는 인식이 되지만, println은 빨간줄 에러가 발생기본 패키지인 java.util의 Arrays, Scanner 같은 클래스들도 인식이 되지 않음정확한 이유는 잘 모르겠으나 인텔리제이 자체의 문제로 캐시를 삭제하고 다시 시작하면 에러 해결File(파일) → Invalidate Caches…(캐시 무효화)4개의 체크박스 중 2,3번째 체크박스 체크 후 다시 시작 [JSON Serialize] HttpMediaTypeNotAcceptableException PaymentRequestDto paymentRequestDto = PaymentRequestDto.builder() .totalPrice(order.getTotalPrice()) .paymentWay(PaymentWay.CARD_PAYMENT) .orderId(order.getOrderId()) .build();PaymentResponseDto paymentResponseDto = paymentApi.payment(paymentRequestDto); order-service 측 에러OrderService의 코드의 일부로 FeignClient를 사용하여 PaymentResponseDto를 반환 받던 중 다음과 같은 에러 발생feign.FeignExcept.. [Redis] java.net.UnknownHostException Root Project의 docker-compose.ymlversion: '3.8'services: redis: image: redis:latest container_name: redis-container ports: - 6379:6379 volumes: - redis-data:/var/lib/redis restart: alwaysvolumes: redis-data: member-service 모듈의 application.ymlserver: port: 8081spring: application: name: member-service # Redis data: redis: host: redis port: 6379모놀리식에서 .. [HMAC-SHA] WeakKeyException HMAC-SHA 알고리즘은 요구되는 최소 길이가 256bit이기 때문에 secret key의 길이를 늘려주어야 함 Base64 Encoding : "시크릿키테스트" → 7Iuc7YGs66a/7YKk7YWM7Iqk7Yq4@PostConstructpublic void init() { byte[] bytes = Base64.getDecoder().decode(secretKey); key = Keys.hmacShaKeyFor(bytes); // 에러 발생}org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtUtil': Invocation of init method failed at org.s.. [Spring Cloud/API Gateway] Spring Reactive Web Spring Cloud의 API Gateway의 의존성을 추가하면 자동으로 Spring Reactive Web이 추가가 되는데 여기서 Spring Web을 추가하면 충돌이 발생 Spring Web은 서블릿 기반의 블로킹 I/O를 사용 Spring Reactive Web(예: spring-cloud-starter-gateway)은 넌블로킹 I/O를 사용 *************************** APPLICATION FAILED TO START *************************** Description: Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway. Action: Please set spr.. [IntelliJ / FeignClient] 의존성 추가 후 어노테이션 인식 불가 FeignClient를 사용하기 위해서 의존성을 추가하였으나, 어노테이션이 인식되지 않음dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // OpenFeign 의존성 추가 implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.mysql:mysql-connector-j' a.. [Eureka] Eureka Client의 UnsatisfiedDependencyException 에러 Eureka Server와 Eureka Client를 멀티 모듈로 연습해보는 과정에서 아래와 같은 에러가 발생하였음org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scopedTarget.eurekaClient' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.class]: Unsatisfied dependency expressed through method 'eurekaClient'.. [JSON] HttpMediaTypeNotAcceptableException Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: No acceptable representation]에러 발생장바구니 조회 기능을 만드는 와중에 처음보는 406 에러가 발생 서비스의 로직을 잘못 작성한 것인지 의심을 하였지만, Service 로직 종료 후 Controller에 반환된 Dto를 출력했을 때 정상적으로 나옴return을 하는 과정에서 어떠한 에러가 발생한 것으로 의심@GetMapping("/list/{memberId}")public ResponseEntity list(@PathVariable(name = "memberId") Long memberId, .. 이전 1 2 3 다음 목록 더보기