Mar 12, 2022 - 구글 이메일로 bitbucket 인텔리J 로그인 이슈

atlassian 계정과 비밀번호를 변경했는데도 로그인이 안될 경우, 인텔리J 에서 App password 로 로그인하는 법

  1. Login to Bitbucket
  2. Click on your profile image on the right (now on the bottom left)
  3. Choose Bitbucket settings (now Personal settings)
  4. Under Access management section look for the App passwords option (https://bitbucket.org/account/settings/app-passwords/)
  5. Create an app password with permissions at least to Read under Repositories section. A password will be generated for you. Remember to save it, it will be shown only once!
  6. The username will be your Google username BitBucket username.

[참고주소] https://stackoverflow.com/questions/35008713/bitbucket-git-credentials-if-signed-up-with-google

Feb 8, 2022 - JDBCTemplate 와 ORM 을 혼영할때, ORM을 못찾을 경우!

JDBCTemplate 와 ORM 을 혼영할때, ORM을 못찾을 경우!

@EnableJdbcRepositories 으로 해당 인터페이스 클래스를 직접 정의해야함. (ORM 으로 자동 Class 주입을 하기 위해 찾지 못하는 듯)

@EnableJdbcRepositories(basePackageClasses = {BrandJdbcRepository.class, OrderListJdbcRepository.class, OrderJdbcRepository.class})

특정 Repositories 위치를 못찾을 경우

@ComponentScan 으로 해당 레포지토리 위치를 찾아줘야함.

@ComponentScan(basePackages={"ncode.domain.repository.boutique","ncode.domain.repository.brand", "ncode.domain.repository.order"})

ps. 해당 내용은 좀더 자세히 설명하려고 변경할 듯, 우선 해당 소스 삭제 전에 관련 내용 잊지 않기 위해 github upload

Jan 17, 2022 - POST MAN 자동 로그인 이력 남기기

로그인 access_token

Post MAN 항목에 Tests 에 다음과 같은 스크립트를 삽입합니다.

pm.test("로그인 access_token", function () {
    var jsonData = pm.response.json();
    pm.globals.set("auth-token", `${jsonData.token_type} ${jsonData.access_token}`);
    pm.globals.set("auth-token-test", `${jsonData.refresh_token}`);
});

auth-token 이란 값에 실제 로그인한 토큰값이 삽입되어,

Authorization : 

로 자동 로그인한 헤더값을 사용할 수 있습니다.