840136b8ca
- 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>
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:p="http://www.springframework.org/schema/p"
|
|
xmlns:security="http://www.springframework.org/schema/security"
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
xmlns:oauth="http://www.springframework.org/schema/security/oauth2"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context.xsd
|
|
http://www.springframework.org/schema/security
|
|
http://www.springframework.org/schema/security/spring-security.xsd
|
|
http://www.springframework.org/schema/security/oauth2
|
|
http://www.springframework.org/schema/security/spring-security-oauth2.xsd
|
|
http://www.springframework.org/schema/mvc
|
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
|
|
|
<context:property-placeholder
|
|
location="/WEB-INF/properties/*.${eai.systemmode}.properties"
|
|
ignore-unresolvable="true" />
|
|
|
|
<context:component-scan
|
|
base-package="com.eactive.eai.authserver" />
|
|
<context:component-scan
|
|
base-package="com.eactive.eai.custom.pretty" />
|
|
<context:component-scan
|
|
base-package="com.eactive.eai.adapter" />
|
|
<context:component-scan
|
|
base-package="com.eactive.eai.manage" />
|
|
<context:annotation-config />
|
|
<mvc:annotation-driven />
|
|
<mvc:default-servlet-handler />
|
|
<mvc:interceptors>
|
|
<bean class="com.eactive.eai.adapter.interceptor.HttpResponseLoggingInterceptor"/>
|
|
</mvc:interceptors>
|
|
|
|
<bean class="com.eactive.eai.adapter.controller.DJErpAdapterMappingRegistrar">
|
|
<property name="paths" value="${dj.erp.adapter.paths}" />
|
|
</bean>
|
|
</beans> |