re:coding

  • 홈
  • 태그
  • 방명록

2023/08/14 2

[Spring Boot] Unsatisfied dependency expressed through field '..'; 단위 테스트시 Bean 생성에러

테스트 중 아래 Bean을 생성하지못한다는 에러가 발생했다. @Autowired PasswordEncoder passwordEncoder; @DataJpaTest class UsersRepositoryTest { private String name = "test"; private String email = "testEmail"; private String password = "testpwd"; private Role role = Role.USER; private Provider provider = Provider.LOCAL; private String providerId = "testproviderid"; @Autowired UserRepository userRepository; @Autowired Pa..

Trouble Shooting 2023.08.14

IntelliJ 안쓰는 import문 제거 자동으로 설정하기

안쓰는거 보고싶지도않고, 가끔 소스트리에 올릴때마다 귀찮기 때문에 아예 안쓸수 있도록 설정해보도록합니다. Mac 1. command + , 혹은 IntelliJ IDEA > Settings 2. Editor > General > Auto Import. Auto Import 에서 Optimize imports on the fly를 체크. 편집을 하면 자동의 불필요한 Import가 정리됩니다

TIP/IntelliJ 2023.08.14
이전
1
다음
더보기
프로필사진

re:coding

  • 분류 전체보기 (27)
    • Trouble Shooting (8)
    • 성능최적화 (0)
    • Linux (4)
    • Cloud (2)
      • Oracle Cloud (2)
    • TIP (1)
      • Git (0)
      • Notion (0)
      • IntelliJ (1)
    • Spring Boot (4)
      • Spring Security (1)
      • Spring Data JPA (1)
    • JAVA (1)
    • Book (3)
      • 면접을 위한 CS 전공지식 노트 (3)
    • ETC (2)

Tag

예외처리, sourcetree, #한컴타자 #한글과컴퓨터 #키크론 #기계식키보드 #타자연습 #타자정확도배틀, Spring Security, Git, spring, 한컴타자 #한글과컴퓨터 #키크론 #기계식키보드 #타자연습 #산성비 #추억의게임 #키크론산성비,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2023/08   »
일 월 화 수 목 금 토
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 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바