Web Flow 视图解析器问题
我有一个示例应用程序,其中包含多个 jar(扩展)中的 Web 流,并且配置是从类路径加载的,这工作正常。但是我正在努力解决视图解析器配置问题,该配置将从与类路径上的流定义相同的位置加载 JSP?
所以我在类路径上有以下文件夹结构 MEAT-INF/config-webflow/ext1/ 流定义和流扩展 1 的 JSP 在这里
Web 流配置工作正常,因为我将其设置为 flow-builder-services="flowBuilderServices" base-path="classpath* :/META-INF/config-webflow">
但到目前为止我还无法想出一个视图解析器配置来加载 JSP
有什么想法吗?
I have a sample application with web flows in a number of jars (extensions) and the configuration is loaded from the classpath this works fine. But I'm struggling with the view resolver configuration that will load the JSP's from the same location as the flow definitions on the classpath?
so I have the following folder structure on the classpath
MEAT-INF/config-webflow/ext1/ flow definition and JSP's for flow extension 1 are here
The web flow configuration works fine as I set this as flow-builder-services="flowBuilderServices" base-path="classpath*:/META-INF/config-webflow">
But as yet I can not come up with a view resolver configuration to load the JSP's
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。我发现通过不在 MvcViewFactoryCreator 上设置正常的 Spring MVC 'viewResolver' bean 可以获得所需的行为。
I had the same problem. I discovered that you get the desired behaviour by NOT setting the normal Spring MVC 'viewResolver' bean on the MvcViewFactoryCreator.