resthub/resthub-archetypes

Use Javaconfig instead of applicationContext.xml

Closed this issue · 2 comments

Use Javaconfig instead of applicationContext.xml

I can take this one.
I just don't know what you had in mind to activate profiles.

  • Using an init parameter in the servlet declaration?
dispatcher.setInitParameter("spring.profiles.active","resthub-jpa");
  • Should we replace the current applicationContext.xml with a Config class?

and go:

ctx.getEnvironment().setActiveProfiles("resthub-jpa");
  • Or the @Profile annotation ?

I call you ;-)