websphere

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在websphere中的应用程序服务器中的进程定义,在里面的JVM中定义了个变量。
-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中的控制台中配。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值