Skip to content

refactor: SampleMapper 문자열 기반 설정 제거#56

Merged
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
itcen-entec-2026:refactor/cleanup/SampleMapper
Jun 23, 2026
Merged

refactor: SampleMapper 문자열 기반 설정 제거#56
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
itcen-entec-2026:refactor/cleanup/SampleMapper

Conversation

@LeeBaekHaeng

Copy link
Copy Markdown
Contributor

수정 사유 Reason for modification

소스를 수정한 사유가 무엇인지 체크해 주세요. Please check the reason you modified the source. ([X] X는 대문자여야 합니다.)

  • 버그수정 Bug fixes
  • 기능개선 Enhancements
  • 기능추가 Adding features
  • 기타 Others

수정된 소스 내용 Modified source

검토자를 위해 수정된 소스 내용을 설명해 주세요. Please describe the modified source for reviewers.

변경 이유

  • @EgovMapper는 기본적으로 Mapper Bean 이름을 자동 생성하므로 명시적인 value 속성이 불필요합니다.
  • 애노테이션 사용 방식을 일관되게 유지하고 코드 가독성을 향상시키기 위해 수정합니다.
  • 문자열 기반 Bean 이름 의존성을 제거하여 리팩터링 시 발생할 수 있는 오타 및 관리 부담을 줄입니다.

작업 내용

  • @EgovMapper("sampleMapper")@EgovMapper 변경
  • 불필요한 Mapper 이름 지정 제거

JUnit 테스트 JUnit tests

테스트를 완료하셨으면 다음 항목에 [대문자X]로 표시해 주세요. When you're done testing, check the following items.

  • JUnit 테스트 JUnit tests

  • 수동 테스트 Manual testing

  • EgovSampleServiceImplTestInsertSampleTest

  • SampleMapperTestDeleteSampleTest

  • SampleMapperTestInsertSampleTest

  • SampleMapperTestSelectSampleListTest

  • SampleMapperTestSelectSampleListTotCntTest

  • SampleMapperTestUpdateSampleTest

테스트 브라우저 Test Browser

테스트를 진행한 브라우저를 선택해 주세요. Please select the browser(s) you ran the test on. (다중 선택 가능 you can select multiple) [X] X는 대문자여야 합니다.

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Opera
  • Internet Explorer
  • 기타 Others

테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video

테스트 전과 후의 스크린샷 또는 캡처 영상을 이곳에 첨부해 주세요. Please attach screenshots or video captures of your before and after tests here.

https://youtu.be/tF5JTWPdEtk

@eGovFrameSupport eGovFrameSupport merged commit a911b66 into eGovFramework:main Jun 23, 2026
1 check passed
@eGovFrameSupport

Copy link
Copy Markdown
Contributor

표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.

이번 변경으로 같은 클래스 안에 생성자 주입(sampleMapper)과 필드 주입(@resource로 남아 있는 egovIdGnrService)이
혼재하게 됩니다. 이 PR의 범위는 아니지만, 추후 여력이 되시면 egovIdGnrService도 동일하게 생성자 주입으로 맞추면
클래스의 주입 방식이 일관되어 더 깔끔해질 것입니다. (필수 아님)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants