This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring (3.1) portlet and JavaConfig

 
Philippe Tran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Does anyone know if it is possible to use a JavaConfig instead of the applicationContext.xml configuration file with portlets and Spring MVC Portlet 3.1+ ?

I have googled about this, and found nothing.

Thanks,
Philippe
 
Ankur Srivastav
Ranch Hand
Posts: 57
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I know applicationContext needs to be defined if you want to use Spring MVC. I am not quite sure what is the JavaConfig file which you have mentioned.
 
Philippe Tran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ankur,

Ankur Srivastav wrote:applicationContext needs to be defined if you want to use Spring MVC. I am not quite sure what is the JavaConfig file which you have mentioned.


You are right. From Spring MVC 3.1, it is possible to use a class with specific annotation to replace the classic spring context descriptor. It'd like to know if this works also for Spring Portlets.

Philippe
 
Viery Robbls
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can surf the Internet access to relevant data and information, and discuss with friends, maybe can help you, wish you good luck.

__________________
I have a dream,it is a fantasy forever.
buy diablo 3 Gold|RS Gold|Diablo 3 Gold|WOW Gold
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic