Top "Applicationcontext" questions

The Spring `ApplicationContext` class

How to change context root of a dynamic web project in Eclipse?

I developed a dynamic web project in Eclipse. I can access the app through my browser using the following URL: …

eclipse jakarta-ee applicationcontext contextroot
How to call a method after bean initialization is complete?

I have a use case where I need to call a (non-static) method in the bean only-once at the ApplicationContext …

spring initialization startup applicationcontext
Failed to load ApplicationContext from Unit Test: FileNotFound

I am creating a Maven Spring project, which includes MVC, Data and Security. My Spring applicationContext-*.xml files are located …

spring junit applicationcontext
BeanFactory vs ApplicationContext

I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together …

spring managed-bean applicationcontext
Spring cannot find bean xml configuration file when it does exist

I am trying to make my first bean in Spring but got a problem with loading a context. I have …

spring configuration javabeans applicationcontext
What is the difference between ApplicationContext and WebApplicationContext in Spring MVC?

What is the difference between Application Context and Web Application Context? I am aware that WebApplicationContext is used for Spring …

spring spring-mvc applicationcontext
How to add a hook to the application context initialization event?

For a regular Servlet, I guess you could declare a context listener, but for Spring MVC would Spring make this …

spring model-view-controller applicationcontext
How to access Spring context in jUnit tests annotated with @RunWith and @ContextConfiguration?

I have following test class @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"/services-test-config.xml"}) public class MySericeTest { @Autowired MyService service; ... } Is …

spring junit spring-test applicationcontext
What is a NoSuchBeanDefinitionException and how do I fix it?

Please explain the following about NoSuchBeanDefinitionException exception in Spring: What does it mean? Under what conditions will it be thrown? …

java spring applicationcontext
How to inject ApplicationContext itself

I want to inject an ApplicationContext itself to a bean. Something like public void setApplicationContext(ApplicationContect context) { this.context = context; } …

java spring applicationcontext