Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7832319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:09:17+00:00 2026-06-02T12:09:17+00:00

Does anyone know if Spring has any extensions that allow for configuring its ApplicationContext

  • 0

Does anyone know if Spring has any extensions that allow for configuring its ApplicationContext via JSON (or really any other format) rather than XML? I couldn’t find anything in the official docs, but I was wondering if there were any other open source extensions that could allow this.

Just to be clear, I’m not talking about configuring SpringMVC to set up a RESTful JSON-based web service or anything like that, just if it’s possible to do Spring app configuration via JSON instead of XML.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:09:24+00:00Added an answer on June 2, 2026 at 12:09 pm

    As far as I know there is no project to support JSON as configuration source. It should be relatively easy to kick-start, (Spring container has no dependency on XML, it is just a way to construct bean definitions). However it is much more work than you might think.

    Note that Spring provides xml-schema to assist you in writing correct XML. You won’t get that much in JSON. Also many DSLs were built on top of Spring XML and custom namespaces support (spring-integration, mule-esb and others use it).

    If you hate XML (many do), try out Java Configuration, available since 3.0 and improved in 3.1:

    @Configuration
    public class MyBeans {
    
        @Bean
        public Foo foo() {
            return new Foo();
        }
    
        @Bean
        public Bar bar() {
            return new Bar(foo());
        }
    
        @Bean
        public Buzz buzz() {
            Buzz buzz = new Buzz();
            buzz.setFoo(foo());
            return buzz;
        }
    
    }
    

    Interesting fact: thanks to some fancy proxying, foo() is called exactly once here, even though referenced twice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know the name of a codec that can translate any random assortment
Does anyone know if there any way that I can programmatically create a bean
Does anyone know of a class in Java that has a list of elements,
Does anyone know how to construct a format string in .NET so that the
Does anyone know if it is possible to create a single connection string that
Hi does anyone know if there are any inbuilt classes for resolving a bound
Does anyone know why i'm not able to get any coordinates when registeren a
Does anyone know how to use a custom ThemeSource in spring? I have seen
Does anyone know how to turn this string: Smith, John R Into this string:
Does anyone know how I can get a format string to use bankers rounding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.