如何设置 CODI 项目阶段?
我通过一个简单的帖子找到了这个 wiki 页面,但是我无法理解它。在我的 JSF 应用程序中,如何告诉 CODI 我想在开发模式下运行?是否有 web.xml 设置或者我必须在某处使用注释?
非常感谢您的帮助。
I found this wiki page through a nabble posting, but I can't make sense of it. In my JSF application, how do I tell CODI that I want to be running in development mode? Is there a web.xml setting or do I have to use an annotation somewhere?
Much thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅 https://cwiki.apache.org/confluence/display/ EXTCDI/Core+Usage#CoreUsage-EnvironmentConfigOptions 不支持 Web.xml 设置,请参阅:“默认情况下不支持 web.xml 和属性文件等静态配置文件 因为 ...”
See https://cwiki.apache.org/confluence/display/EXTCDI/Core+Usage#CoreUsage-EnvironmentConfigOptions Web.xml settings aren't supported see: "Static configuration files like web.xml and property files aren't supported by default because ..."
我知道自从您提出问题以来已经过去了几个月,但我通过在开发环境中运行时将 javax.faces.PROJECT_STAGE=Development 设置为系统属性来实现这一点。
CODI 不会从 web.xml 中获取它,但会测试系统属性。
I know it's been a couple of months since you asked the question, but I achieve this by setting javax.faces.PROJECT_STAGE=Development as a system property when running in my dev environment.
CODI doesn't pick it up from web.xml, but does test the system property.