English 中文(简体)
SpringMVC: Can 我具体指出,“ModelAttribute”仅供特定控制器方法使用?
原标题:SpringMVC: Can I specify a @ModelAttribute be populated only for specific controller methods?

我们拥有几个特征,在我们网络应用中,这些特性占90%。

我只想就我的控制者宣布一个<代码>@ModelAttribute(“用户客户”,以充实这一共同特征。

然而,在某些网页上,我并不需要这一特性。 Can 我避免了在不要求的情况下在一次性案件中将其人口(生产成本不大)?

我并不是一个大的狂热分子,他们都是在每次呼吁中不作宣示的,但我不喜欢每个控制者手上增加方法的复印件。

最佳回答

I m pretty 我们相信,没有这种支持,也得到以下附加说明的支持:rel=“nofollow”>。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签