在websphere中的应用程序服务器中的进程定义,在里面的JVM中定义了个变量。
-Dsfg.config.dir=c:/sfg,spring中的xml中用到。。
可是在myeclipse中启动还是找不到。但是在控制台启动就可以找到了。
原因是我要在myeclipse中启动就应该在myeclipse中配置这个参数,不应该在websphere中的控制台中配。
-Dsfg.config.dir=c:/sfg,spring中的xml中用到。。
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<list>
<value>classpath:messages</value>
<value>classpath:labels</value>
<value>file:${sfg.config.dir}/sfg</value>
</list>
</property>
<property name="useCodeAsDefaultMessage" value="true" />
</bean>
<bean id="propertyPlaceHolderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:${sfg.config.dir}/sfg.properties"></property>
</bean>
可是在myeclipse中启动还是找不到。但是在控制台启动就可以找到了。
原因是我要在myeclipse中启动就应该在myeclipse中配置这个参数,不应该在websphere中的控制台中配。