feat: DJErp 어댑터 URL 매핑을 properties 외부화 및 동적 등록으로 변경

- DJErpAdapterMappingRegistrar 신규 추가: ContextRefreshedEvent 시점에
  dj.erp.adapter.paths(쉼표 구분)를 읽어 callApi 메서드를 동적으로 등록
  OAuth2의 FrameworkEndpointHandlerMapping과 충돌하지 않도록 exact type 비교로 선택
- DJErpApiAdapterController: 하드코딩된 @RequestMapping 제거 (Registrar에 위임)
- DJErpApiAdapterService: @Primary 추가 (Root/Servlet Context 중복 스캔 시 충돌 방지)
- applicationContext-jpa.xml: Root Context에서 @Controller/@RestController 제외 필터 추가
- authserver-servlet.xml: context:property-placeholder 및 DJErpAdapterMappingRegistrar 빈 선언 추가
- env.D/T/P.properties: dj.erp.adapter.paths 속성 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
curry772
2026-04-30 16:54:23 +09:00
parent efcc7fe208
commit 840136b8ca
8 changed files with 154 additions and 34 deletions
@@ -20,7 +20,12 @@
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">
<context:component-scan base-package="com.eactive.eai" />
<context:component-scan base-package="com.eactive.eai">
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Controller"/>
<context:exclude-filter type="annotation"
expression="org.springframework.web.bind.annotation.RestController"/>
</context:component-scan>
<bean id="entityManagerFactory" primary="true"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">