네트워크 기본 DNS Server가 먼저 설정되는 문제

 

NetworkManager 및 /etc/resolv.conf 에 내가 원하는 DNS Server의 순서가 지정되지 않는 문제..

systemd-resolved 사용 안 하는게 정신 건강에 좋은듯..

(서버 아니고 PC 데스크탑임)

sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved

sudo vi /etc/nsswitch.conf
...
hosts:      files dns
...

 

@Validated 기능 사용 시 Spring의 AOP Proxy 동과 관련되어 AService 클래스내에 @Autowired BService bService가 null 해결 방법

@Validated
@Service
class AService {
	@Autowired
    private BService bService;
    
    private Test getTest() {
    	// bService null인 상황일때
    }
}





@ActiveProfiles({ Application.ACTIVE_PROFILE_TEST_CASE })
@SpringBootTest
@ExtendWith(SpringExtension.class)
@TestMethodOrder(MethodOrderer.Alphanumeric.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@Slf4j
class TestCase {
    @MockBean
    private BService bService;

    @Autowired
    private AService aService;

    @Test
    void test() {
        ...
        BService bService = new BService();
        Mockito.when(bService.get1("1")).thenReturn(new Test());
        ...

        ReflectionTestUtils.invokeMethod(AopTestUtils.getTargetObject(aService), AService.class, , "getTest");
    }
}
  1. Double Commander
  2. Sublime Text
  3.  Spectacle
    • 화면 캡쳐 : 윈도우 픽픽 같아 아주 좋음, 그놈 기본은 강조 표시 등 간단한 수정이 안되어 불편
  4. GIMP (GNU Image Manipulation Program, 그누 이미지 처리 프로그램)
    • 이미지 편집
  5. Shotcut
    • 동영상 편집
  6. Color Picker
    • 화면에서 RGB 색상 알아내기
  7. KRuler
    • 줄자
  8. Studtio 3T Linux
  9. Fleet
  10. DataGrip

+ Recent posts