Top "Applicationcontext" questions

The Spring `ApplicationContext` class

Maven copying applicationContext.xml from src/main/resources to target/myproject/WEB-INF

At the moment, the default I think, it copies to target/myproject/WEB-INF/classes so when deploying it does not …

java spring maven applicationcontext
How does Spring create an application context or container hierarchy?

According to The IoC Container, Spring can manage a context hierarchy or hierarchy of containers and then use the <…

java spring ioc-container applicationcontext
Create a spring boot application with multiple child contexts

I'm trying to create an application using spring boot with an hierarchical application context. My current main method looks like: …

spring spring-boot applicationcontext hierarchical
Context Configuration in spock test

I have such Application class: @Configuration @EnableAutoConfiguration @ComponentScan @ImportResource("classpath:applicationContext.xml") @EnableJpaRepositories("ibd.jpa") public class Application { public static …

java spring spock applicationcontext
Spring shutdown event that fires immediately before ApplicationContext is destroyed?

I am looking for an interceptor or a trigger to know that, all the context beans are destroyed and the …

java spring destroy applicationcontext
Spring 3.1 bean visibility using bean definition profiles

I have been experimenting with using Spring 3.1's bean definition profiles and nested beans. I had hoped that I could …

java spring maven applicationcontext
Modify active profiles and refresh ApplicationContext runtime in a Spring Boot application

I have a Spring boot Web application. The application is configured via java classes using the @Configurable annotation. I have …

java spring-boot refresh applicationcontext spring-profiles
Ignore some classes while scanning PackagesToScan

I've a package (say packagesToScan) containing Classes that I wish to persist annotated with @Entity. While defining ApplicationContext configuration, I've …

spring spring-data spring-data-jpa applicationcontext
How to get bean with class and qualifier programmatically?

It is possible to @Autowired bean with class and @Qualifier in Spring. How to do the same thing programmatically? I.…

java spring applicationcontext
Correct way to get the instance of Application in android

Which of these ways is more proper for getting the instance of Application Initialise static field in Application.onCreate() and …

android applicationcontext