-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
Comments
Thanks for raising. Until we get this fixed you could try adding a @configuration class with an @import |
Superseded by the PR #17 that addresses the issue. |
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
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.
The text was updated successfully, but these errors were encountered: