出于完整性起见,我在代码中包含了设置这个特性,但是更普遍的是将它设置成一个JVM命令行参数。
I included setting this property in the code for completeness, but it would more commonly be set as a JVM command-line parameter.
你如何设置并且达成你的目标?我很高兴在评论里听到这些建议中的哪些对你们起了作用。
How do you set and achieve your goals? I'd love to hear what works for you in the comments.
我发现最好的方法是在服务器的启动脚本中设置这些值。
I've found that it is best to set these values in the server's startup script.
还可以为许多其它字段设置值;在本示例中,我使用了接近最少数量的字段。
There are many more fields for which a value could be set; I have used close to the bare minimum in this example.
(在本例中,我只能通过编程方式访问它,因为与所有内容关联的默认访问控制被设置为拒绝任何未授权访问)。
And in this case, I can only access it programmatically, because the default access controls associated with everything are set to deny any noncredentialed access to it.
在我以前的文章“增强jsf页面的外观”(参见参考资料)中,我展示了一种设置标准JSF组件的默认属性的技术。
In a previous article of mine titled "Enhance the appearance of your JSF pages" (see Resources), I presented a technique for setting the default attributes of the standard JSF components.
在我的测试中,这些设置表现得不错。
我已经在讨论中设置了情形,大部分公司有两种结果:要么你的公司非常成功,要么不是。
I've obviously laid out my case in the argument. Most companies have binary outcomes: you're either really successful as a company or you're not.
在接下来的部分中,我将说明如何设置JMX代理进行远程访问。
In the next section, I'll show you how to set up your JMX agent for remote access.
我喜欢的做法是,在总体LPAR沙箱中设置多个WPAR沙箱,各自归属不同的管理员,而且现在这样做的成本比以前降低了很多。
While my preference is to have several WPAR sandboxes within an overall LPAR sandbox, each of these owned by a different administrator, this now becomes less of a luxury than it used to be.
在测试设置中,我选择的是crc模式。
在我的系统设置中,error函数提供了最有用的结果:错误消息。
With my system setup, the error function provides the most useful result: the error message.
如果未指定target,则使用默认target(我在project元素中设置的target)。
If no target is specified, the default is used, which I set in the project element.
在清单1中,我设置了libtiff并创建一个简单的缓冲区,使之包含我稍后可以写到磁盘上的图像。
In Listing 1, I set up libtiff and create a simple buffer that contains an image I can then write out to disk.
首先,我解释在构建过程中Shale将各种文件放置在何处,然后为您演示如何设置它以部署应用程序。
First, I explain where Shale puts various files during the build process, and then I show you how it is set up to deploy applications.
好了,我们将把它置于相当黑暗的环境中,这是为了得到相当好的质量,我将会把,这5个关掉,并且把自由沉降速率设置在,现在我要开始了,来了。
All right, we're going to make it rather dark in order to get decent quality. I'm going to turn 2 five of these off and I'm going to set the TV at two, and now I will start this. There we go.
在我遇到的情况中,我使用tcplimit来设置使用rsync的最大上限,以防止太多rsync连接占据我的DSL线路。
In my case, I use tcplimit to set a maximum upper bound for rsync usage to prevent my DSL line from becoming saturated by too many rsync connections.
在每一个特性中,我推荐设置3到10个配置选项。
Within each feature, I recommend having somewhere between three and 10 configuration options.
在清单3中,我将click设置为10秒的等待时间——足够表单提交请求完成处理。
In Listing 3, I make Selenium wait 10 seconds — long enough to allow the form-submit request to finish processing.
此外还应注意,我在表单上为状态消息留下了空间,这将在add . php中动态地设置,如下面的清单所示。
Also, note that I left some space just above the form for a status message, which you'll set dynamically in add.php, as shown below.
在我的例子中,我只要搜索官方文件,而这些正是Google已经做的:返回的结果中从包含设置的网站中抓取的,没有垃圾网站和错误的数据。
In my case, I wanted to only search official documents, and that's exactly what Google has done - returning results that are crawled from those pages only. No garbage, spam sites or erroneous data.
同时,在“自定义设置”页面的另一默认设置启用了“我登陆某地方后,在‘现在在此的人’中包括我(Include mein' People Here Now ' after icheck in)”。
Also, another default setting on the "Customize Settings" page is "Include me in 'People Here Now' after I check in."
为了给示例设置聚合报告,我在全局project . properties文件中定义了以下属性。
To set up the aggregated reports for the example, I defined the following properties in the global project.properties file.
我在代码中设置了显式return调用,这在Groovy中都是可选的,但如果不用,代码就更难懂了!
I've placed explicit return calls in this code, both of which are optional in Groovy, but the code is even more cryptic without them!
由于类定义中的类型子句,我将传入map方法的参数类型设置为在context. write子句内带有该方法的输出。
Because of the type clause in the class definition, my parameter types coming into the map method are set along with the outputs of this method inside the context.write clause.
在本例中,我希望其值为 ${basedir}/WebContent/WEB-INF/classes,以便与ApplicationDeveloper工作区设置及J2EE标准相符合。
In the example, I want this value to be ${basedir}/WebContent/WEB-INF/classes, to comply with the Application Developer workspace settings and J2EE standards.
在清单1中,我给Race对象设置了4个属性,最后一个是一个选手Collection。
In Listing 1, I've specified a Race object with four properties, the last of which is a Collection of runners.
在本例中,我依靠服务器设置一个名为X - Ticket - Sequence - Number的特殊HTTP头部字段。这个字段中保存的是用户正在构造的故障单的唯一标识。
In this case, I rely on the server setting a special HTTP header named X-Ticket-Sequence-Number, which holds the unique identifier for the ticket the user is constructing.
在本例中,我依靠服务器设置一个名为X - Ticket - Sequence - Number的特殊HTTP头部字段。这个字段中保存的是用户正在构造的故障单的唯一标识。
In this case, I rely on the server setting a special HTTP header named X-Ticket-Sequence-Number, which holds the unique identifier for the ticket the user is constructing.
应用推荐