Hi,
I'm using Spring 3.1.1.RELEASE, JUnit 4.8.1, and Mockito 1.9.5. In one of my JUnit tests, I want to autowire a spy -- a mocked class in which I'm only mocking one of the public methods. So...
Type: Posts; User: laredotornado; Keyword(s):
Hi,
I'm using Spring 3.1.1.RELEASE, JUnit 4.8.1, and Mockito 1.9.5. In one of my JUnit tests, I want to autowire a spy -- a mocked class in which I'm only mocking one of the public methods. So...
Hi,
I'm using Spring 3.1.1.RELEASE with accompanying Spring security. I want to access one of my Boolean value from a field in my UserDetails object. The object is
public class...
Hi,
I'm using Spring 3.1.1.RELEASE and building a web application. I'm struggling to figure out how I manipulate a java.util.Map (via a JSP) that I want to put in my Model. Here is the method...
Hi,
I'm using Spring 3.1.1.RELEASE with the accompanying Spring security. I'm hoping there's something really obvious I'm missing because I repeatedly get 404s when I try and submit to my Spring...
Hi,
I'm using Spring 3.1.1.RELEASE, Hibernate 4.1.0.Final, JPA 2.0, and JBoss 7.1.1. I'm building a web application (WAR) and would like to sett an application-wide transaction timeout (without...
Hi,
I'm using Spring 3.1.1.RELEASE. I'm trying to setup my constructor based on properties from a properties file. Here is my application context ...
<context:property-placeholder...
Hi,
I'm using Spring 3.1.1.RELEASE on JBoss AS 7.1.0.Final. I have this defined in my application context file …
<util:properties id="applicationProperties"...
I was trying to follow the instructions here -- http://static.springsource.org/spring/docs/3.0.5.RELEASE/reference/aop.html, but before I go crazy, is there another way I should be doing this that is...
Hi, I'm using Spring 3.1.0.RELEASE. One of my Hibernate classes (EventFeed) references a class (AbstractEventParser ), in which I'd like to get access to a service, loaded by Spring. However, my...
Hi,
I'm using Spring 3.1.0.RELEASE. I want to use Spring's @Transaction annotation to manage my transactions in my service class. I have three methods marked with...
No estoy entendiendo tu respuesta!
However, I solved this problem using the @PostConstruct annotation. I added my Quartz job as a Spring bean in my application context file and then annotated the...
I'm having trouble making the connection between this interface and invoking a method from my scheduling class on application startup. I can see that this interface provides a way to access the...
Hi,
I'm using Spring 3.1.0.RELEASE. I want to run a Quartz cron job immediately after application startup and then every 12 hours. How do I get it to run at application startup? I tried...
Hi,
I'm using Spring 3.1.0.RELEASE, Spring's transaction manager, and Hibernate 4.0.1.Final. Through Hibernate, I'm retrieving a bean, whose property I want to display on a JSP page. But when I...
Hi,
I'm using Spring 3.1.0.RELEASE. I want to test a controller using SpringJUnit4ClassRunner. How do I get a reference to my org.springframework.validator.Errors object from the Spring...
Are you talking about this ...
<form:checkboxes itemValue="value" itemLabel="label"
path="user.degrees" items="${degreeLabels }" />
? This will render all the checkboxes at once,...
Hi,
I'm using Spring 3.1.0.RELEASE. I have this field in my domain object ...
public Set<EventFeed> getUserEventFeeds() {
return this.userEventFeeds;
}
Ok, so what URL should I use or how can I figure it out? Thanks, - Dave
Hi,
I'm using Spring 3.1.0.RELEASE with spring security 3.1. I'm trying to test my login controller but running into some problems. Does anyone know what request URI I should be using? My JUnit...
Thanks. Just to be clear, I should still include this
<!-- Enable annotation driven controllers, validation etc... -->
<mvc:annotation-driven />
<context:component-scan...
Hi,
I want to use EasyMock to mock a controller's data access object when testing my controller in my Spring JUnit test. How do I autowire the data access field in my controller with a mock...
Hi AuPanner, Is your file called "log4j.xml"? Is it located in your WAR's WEB-INF/classes directory?
I named my file log4j.xml and placed it in WEB-INF/classes, but changed the path to be...
Hi,
I'm using Spring 3.0.5.RELEASE. I'm also using log4j. I want to enable Spring debugging so I can see why a mapping isn't resolving, but this log4j.properties configuration ...
# Root...
Hi,
I'm using Spring 3.0.5.RELEASE. I'm having trouble autowiring a bean. I get the exception ...
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire...
Hi,
Yes, I have an index.jsp file at my wAR's root. What I would like is visiting http://localhost:8080/my-context-path/ to display the index.jsp page and visiting...