GithubHelp home page GithubHelp logo

runeflobakk / spring-config-bug Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 108 KB

Case which reproduces and isolates a bug in Spring when mixing Javaconfig and XML to configure the application context.

Java 90.68% Groovy 9.32%

spring-config-bug's Introduction

spring-config-bug

There seems to be a bug in Spring (3.2.2.RELEASE and earlier at time of writing) occuring when using a certain combination of both Javaconfig and XML to configure the application context.

Issue registered at Springsource: https://jira.springsource.org/browse/SPR-10496

Configuration

Application context is configured using 3 constituents:

  • main
  • in-between
  • leaf

Main imports in-between, which imports leaf. The only bean is defined in leaf, a simple String.

This works:

main.xml -> in-between.xml -> Leaf.java

Works fine, and I am able to retrieve the bean defined in Leaf.java.

This fails:

Main.java -> in-between.xml -> Leaf.java

Using Javaconfig as the "top node" of the configuration graph seems to disable the ability of imported XML configuration to import Javaconfig using the <bean class=".."> tag. The included JUnit test cases demonstrates this.

spring-config-bug's People

Contributors

runeflobakk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.