gpt4 book ai didi

java - Spring mvc 中有哪些 portlet 类?

转载 作者:行者123 更新时间:2023-12-03 18:42:07 24 4
gpt4 key购买 nike

在 Spring MVC 中似乎有两种平行的类层次结构,一种有 portlet,一种没有。

那是什么?为什么会这样,我应该用什么。

最佳答案

那是因为

In addition to supporting conventional (servlet-based) Web development, Spring also supports JSR-168 Portlet development. As much as possible, the Portlet MVC framework is a mirror image of the Web MVC framework, and also uses the same underlying view abstractions and integration technology.

Spring documentation (Chapter 16. Portlet MVC Framework)提供有关差异的更多信息。

要回答您的最后一个问题:您应该使用 Portlet MVC framework如果您正在开发 portlet(要部署在门户中的 Web 应用程序)。如果您正在开发传统的 Web 应用程序,您应该使用 Web MVC framework .

关于java - Spring mvc 中有哪些 portlet 类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/722383/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com