If your spring-context.xml and my.config files are in different jars then you will need to use classpath*:my.config
?
More info here
Also, make sure you are using resource.getInputStream()
not resource.getFile()
when loading from inside a jar file.
More Related Contents:
- Spring Boot – Loading Initial Data
- Spring Boot not serving static content
- BeanFactory vs ApplicationContext
- Why can’t we autowire static fields in spring?
- How to add a hook to the application context initialization event?
- Scope ‘session’ is not active for the current thread; IllegalStateException: No thread-bound request found
- How Spring Security Filter Chain works
- Spring @Transactional read-only propagation
- Disable all Database related auto configuration in Spring Boot
- How to set active spring 3.1 environment profile via a properites file and not via an env variable or system property
- How to use OAuth2RestTemplate?
- Spring @Value annotation in @Controller class not evaluating to value inside properties file
- Java command line with external .jar
- When use ResponseEntity and @RestController for Spring RESTful applications
- Spring DI – Autowired property is null in a REST service
- How Do I Create Many to Many Hibernate Mapping for Additional Property from the Join Table?
- Spring HandlerInterceptor vs Servlet Filters
- SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer
- How to test a mocked JNDI datasource with Spring?
- Multiple antMatchers in Spring security
- Storing in JobExecutionContext from tasklet and accessing in another tasklet
- Spring: Difference of /** and /* with regards to paths
- Spring Boot Data JPA – Modifying update query – Refresh persistence context
- Spring boot: configure it to find the webapp folder
- Dependency Injection in JSR-303 Constraint Validator with Spring fails
- Spring MVC bean mapping to HTTP GET request parameters similar to @BeanParam
- Self-invocation behaviour in @Configuration vs. @Component classes
- Programmatic access to properties created by property-placeholder
- Where should I place my Vaadin 10+ static files?
- @SpringBootTest vs @ContextConfiguration vs @Import in Spring Boot Unit Test