my dog learned polymorphism*
The moose likes Portals and Portlets and the fly likes Spring (3.1) portlet and JavaConfig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Spring (3.1) portlet and JavaConfig" Watch "Spring (3.1) portlet and JavaConfig" New topic
Author

Spring (3.1) portlet and JavaConfig

Philippe Tran
Greenhorn

Joined: Apr 30, 2013
Posts: 2
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

Joined: Aug 31, 2009
Posts: 57

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.


Sun Certified Java Programmer v 1.4
Oracle Certified Associate, Java SE 7 Programmer
JEE 5 Web Component Developer Certified Professional
Philippe Tran
Greenhorn

Joined: Apr 30, 2013
Posts: 2
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

Joined: May 23, 2013
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring (3.1) portlet and JavaConfig