English 中文(简体)
Calling @Controller 每一次申请
原标题:Calling @Controller methods once per request

有没有哪一种办法可以把春季的<代码>@Controller的班次称为一种特定的方法,每次申请一次?

现在使用附加说明的<代码>@InitBinder的方法的Im,但按要求,这种方式为“@InitBinder”。 我只想做一些初步化/更新工作,在我的控制人员中使用。

我所期待的是铁路网(>之前,但只要我能告诉大家,春天没有这样的功能。

最佳回答
问题回答

暂无回答




相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

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 ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...