Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties and wildcards are not recognized in the SpringApplication.run() sources #16

Closed
sshcherbakov opened this issue Aug 7, 2013 · 2 comments

Comments

@sshcherbakov
Copy link

I ran into a small issue with spring-boot when migrating existing project to it recently: the SampleApplication.run(sources, args) doesn't recognize the wild cards and properties inside of the source string (like "classpath:*-context.xml" is not getting recognized whereas "classpath:my-context.xml" does). The reason is the BeanDefinitionLoader which doesn't check for and use the ResourcePatternResolver.getResources() like AbstractBeanDefinitionReader.loadBeanDefinitions() does, for instance.

@philwebb
Copy link
Member

philwebb commented Aug 7, 2013

Thanks for raising. Until we get this fixed you could try adding a @configuration class with an @import

@dsyer
Copy link
Member

dsyer commented Aug 9, 2013

Superseded by the PR #17 that addresses the issue.

@dsyer dsyer closed this as completed Aug 9, 2013
sshcherbakov pushed a commit to sshcherbakov/spring-boot that referenced this issue Aug 21, 2013
…n the SpringApplication String defined sources

* Default resource loaded in the BeanDefinitionLoader has been changed to PathMatchingResourcePatternResolver;
* A check for the ResourcePatternLoader similar to that in AbstractBeanDefinitionReader and property placeholder resolution has been added to the load(CharSequence) method of the BeanDefinitionLoader;
* Added a unit test illustrating the issue;
wilkinsona added a commit to wilkinsona/spring-boot that referenced this issue Nov 3, 2016
W0rf referenced this issue in W0rf/jenkins2-course-spring-boot Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants