CONFIG_PATH라는 Java Option을 WAS에 추가합니다.
CONFIG_PATH는 특정 directory( WAS_HOME )가 지정되며, security.properties 파일이 존재합니다.
CONFIG_PATH 의 용도
CONFIG_PATH 의 사용처
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="file:${CONFIG_PATH}/security-manager.properties" /> . . . 중략 . . . </beans>
<?xml version="1.0" encoding="UTF-8"?> <configuration debug="true" scan="true"> <property file="${CONFIG_PATH}/security-manager.properties"/> . . . 중략 . . . </configuration>
<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> <beans:bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <beans:property name="location" value="file:${CONFIG_PATH}/security-manager.properties" /> . . . 중략 . . . </beans:beans>