Top "Applicationcontext" questions

The Spring `ApplicationContext` class

Can I have the META-INF folder into src/main/resources of a Spring command line application?

I am working on a batch aplication implemented using Spring. In this application I found the following structure: BATCH PROJECT | | |…

java spring applicationcontext meta-inf
Why I must have a default constructor in a Spring configuration class annoted by the @Configuration annotation?

I am studying for Spring Core certification and, on the provided study stuff, I have this question but I can't …

java spring spring-mvc annotations applicationcontext
Read an environment variable from applicationContext.xml

I need read an environment variable defined in my web.xml <env-entry> <description>Path Repositorio NFS&…

java xml spring applicationcontext
Component Scan not finding @Component's in a JAR in Tomcat webapp

I just filed a bug in the Spring bugsystem ( https://jira.springsource.org/browse/SPR-8551 ), but I am still unsure …

spring web-applications applicationcontext opencms
Spring transactional context doesn't persist data

I know that my problem is a common problem, but I've checked a lot of questions here, checked Spring documentation …

spring jpa applicationcontext transactional persist
In Spring, getting "java.lang.IllegalArgumentException: Could not resolve placeholder" despite having defined "PropertyPlaceholderConfigurer"

I’m using Spring 3.2.11.RELEASE with Maven 3.3. I have this defined in my application context file … <bean id="localPropertyConfigurer" …

spring properties applicationcontext property-placeholder
Parsing applicationContext.xml renders a `java.lang.NoSuchMethodError`. Could this be caused by dependency issues?

I am invoking a test method (Junit) with an annotated application context (@ContextConfiguration(locations={"classpath:applicationContext.xml"})). The test fails …

java spring applicationcontext
Spring ApplicationContext.getBean(Class c) not working for proxy classes

I need to look up beans via their class type. When the beans have been wrapped by a Proxy (some …

java spring proxy applicationcontext
Is it possible to inject a bean defined with @Component as an argument to a BeanFactoryPostProcessor?

And if so which configuration is needed? Is this not recommended? The annotated class: package com.springbug.beanfactorydependencyissue; import javax.…

java spring dependency-injection annotations applicationcontext
Is there a way to store java variable/object in application context without xml or properties file

I want to store a particular variable (String or Object) in application context in spring boot application. But I don't …

java spring spring-boot applicationcontext