본문 바로가기 메뉴 바로가기

별별코딩

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

별별코딩

검색하기 폼
  • 분류 전체보기 (96)
    • 사소한 개발 일기 (3)
    • language (21)
      • java (17)
      • kotlin (4)
      • python (0)
    • backend (17)
      • spring boot (7)
      • jpa (4)
      • server (2)
      • linux (3)
      • 장애대응 (1)
    • database (5)
      • mysql (2)
      • redis (1)
      • mongodb (2)
    • devops (1)
      • docker (1)
    • etc (13)
      • git (8)
      • mac (1)
      • firebase (1)
      • etc (3)
    • error log (19)
    • computer science (2)
      • network (2)
    • algorithm (1)
    • project (9)
      • side project (3)
      • academy (6)
    • Series (5)
      • 자바 플레이그라운드 with TDD, 클린코드 (1)
      • 도메인 주도 개발 시작하기 (0)
      • 스프링 핵심 원리 - 기본편 (4)
  • 방명록

error log (19)
브라우저 HTTP request headers에 쿠키가 없는 경우 해결법

원인브라우저는 크로스 도메인 요청 CORS일 때, 보안의 문제로 기본적으로 쿠키를 보내지 않는다.따라서 CORS 요청에서 쿠키 포함 여부를 클라이언트, 서버 모두 명시적으로 설정해야한다. 해결법1. 클라이언트 요청에 withCredentials: true 또는 credentials: 'include' 포함axios.get('https://example.com/api', { withCredentials: true,}) 2. 서버에서 Access-Control-Allow-Credentials: true 설정하기Spring WebMvcConfigurer에서 CORS 설정도 필요하다..allowedOrigins("*")와 allowCredentials(true)는 함께 사용할 수 없기 때문에 명시적으로 or..

error log 2025. 7. 10. 20:30
[MySQL] 유저 권한 부여 오류 : ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password'' at line 1

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password'' at line 1 mysql 8 버전 미만에서는 유저 생성, 권한 설정이 한번에 되지만 8 버전 이상에서는 불가능하다. 8 버전 미만 GRANT ALL PRIVILEGES ON team_dev.* TO user_dev@localhost IDENTIFIED BY 'password'; flush privileges; 8 버전 이상 create user user_dev@'%' identifi..

error log 2023. 11. 9. 15:48
[Java] dto 클래스 에러 : com.fasterxml.jackson.databind.exc.InvalidDefinitionException

에러 메세지 com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.clone.instagram.domain.user.dto.SignUpRequest` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) com.fasterxml.jackson 라이브러리를 사용하여 JSON 객체를 Java 객체로 변환하다가 생기는 에러 원인 com.clone.instagram.domain.user.dto.SignUpRequest 클래스..

error log 2023. 4. 6. 23:28
No ParameterResolver registered for parameter : Junit5 @Autowired 의존성 추가

에러 메세지 No ParameterResolver registered for parameter [com.clone.instagram.domain.user.repository.UserRepository userRepository] in constructor [public com.clone.instagram.domain.user.service.UserServiceTest(com.clone.instagram.domain.user.repository.UserRepository,com.clone.instagram.domain.user.service.UserService)]. 원인 Junit5 테스트 코드에서 의존성이 주입되지 않았을때 발생하는 에러 해결방법 1. 테스트 클래스에 @SpringBootTest 테스트..

error log 2023. 4. 2. 15:54
[Spring Security] Cannot resolve method 'and' in 'HttpSecurity'

에러 메세지 Cannot resolve method 'and' in 'HttpSecurity' @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .csrf().disable() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .cors().configurationSource(corsConfigurationSource()).and() .authorizeRequests() .antMatchers("/api/v1/users/*").permitAll() .antMatchers("/api/v1/login")...

error log 2023. 3. 29. 17:01
[Spring Security] Cannot resolve method 'antMatchers' in 'ExpressionInterceptUrlRegistry’

에러 메세지 Cannot resolve method 'antMatchers' in 'ExpressionInterceptUrlRegistry’ @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .csrf().disable() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .cors().configurationSource(corsConfigurationSource()).and() .authorizeRequests() .antMatchers("/api/v1/users/*").permitAll() .ant..

error log 2023. 3. 29. 14:39
[kotlin] java.lang.NullPointerException: Parameter specified as non-null is null: method

에러메세지 java.lang.NullPointerException: Parameter specified as non-null is null: method com.beside.backend.api.controller.v1.member.MemberController.getSignupCount, parameter loginType 어디선가.. 파라미터에 null 으로 값이 들어왔다는 에러 어디서부터 null 이 들어간건지 null...찾으러간다. 원인 기간, 로그인 타입 별 회원가입한 사용자 수에 대한 통계를 내던 도중 발생 !! 기간은 반드시 들어가는 데이터고, 로그인 타입은 선택사항이다. 즉, value 값을 안쓰면 여기서 null 로 넘어간다는 의미. 에러 로그에 맞게 떡하니 여기서 null 값을 넘기고..

error log 2023. 3. 5. 02:13
[JPA] 두번 이상의 left join fetch가 필요할 때, MultipleBagFetchException 문제 해결

에러 메세지 org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags: [com.beside.backend.domain.entitiy.wisesaying.WiseSaying.emotionWiseSayingsWords, com.beside.backend.domain.entitiy.wisesaying.WiseSaying.wiseSayingBookmark]; nested exception is java.lang.IllegalArgumentException: org.hibernate.loader.Mult..

error log 2023. 2. 26. 18:43
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Linux
  • spring boot 3
  • n+1
  • 자바 어플리케이션 실행 과정
  • bucket4j
  • Kotlin
  • 스프링오류
  • jvm warm-up 전략
  • addFilterBefore
  • JPA
  • ChatGPT
  • Git
  • 티스토리챌린지
  • 추상클래스
  • MultipleBagFetchException
  • Spring Security
  • 오블완
  • array
  • port
  • Java
  • FetchJoin
  • redisson 분산락
  • 배열
  • Cannot construct instance of
  • dto 클래스 생성자
  • QueryDSL
  • 스프링 스케줄링
  • junit5
  • checkout
  • MongoDB
more
«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바