• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring (3.1) portlet and JavaConfig

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 57
Eclipse IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic