Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
XML <-> JavaConfig Converting tool Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • XML <-> JavaConfig Converting tool

    I'm new here, quick question. Is there any converting tool available? Since JavaConfig is alternatives to XML config.

    Thank you

  • #2
    Sorry - no such tool exists.


    • #3
      Is there any possibility to implement it? I mean is there any restriction between xml config to java config? say, only xml config can do this.

      In that post, you said that @ExternalValue will be replaced by @Value in spring version 3.0, Is this mean some feature in spring 3.0 can support as java config does?

      If we start a new project, which way should we use? using java config or spring 3.0.

      I would like to do Obfuscate our code with spring, just search through forum and found the way to do is java config.

      Any suggestion?

      Thank you


      • #4
        It is conceptually possible to implement. Feel free to create a New Feature request at (create it under the Spring JavaConfig project).

        As to whether to start with Spring 3.0 or JavaConfig, it would be best to go with Spring 3.0 right now. There will be a release of JavaConfig on or around the Spring 3.0 release date, which will be up-to-date with the recent changes made in 3.0. Until that time, you should go with the support in Spring Core.