在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中的控制台中配。
MyEclipse与Websphere环境变量配置
本文探讨了在MyEclipse中启动应用程序时遇到的环境变量配置问题,并对比了在Websphere控制台中配置的成功案例,强调了根据不同环境正确设置参数的重要性。
4493

被折叠的 条评论
为什么被折叠?



