dinup:
I believe your application must be something wrong.
See my attachment (wrote by maven) to show how it works.
You can issue
"mvn test" to test controller;
"mvn jetty:run"...
Type: Posts; User: kent.yeh; Keyword(s):
dinup:
I believe your application must be something wrong.
See my attachment (wrote by maven) to show how it works.
You can issue
"mvn test" to test controller;
"mvn jetty:run"...
dinup:
If you want to use jackson with spring default message converter to convert object to json.
Just include jackson-core and jackson-databind into classpath, Spring 32 will automatic include...
dinup:
Have you add jackson-core and jackson-databind?
I just wrote a sample and it works.
dinup:
try to add produces to method switchUser
Controller for this:
@RequestMapping(method = RequestMethod.GET, value = { WebApplicationConstants.SWITCH_USER_URL }, produces =...
The MockMvc.java snip to display not thread safe.
public ResultActions perform(RequestBuilder requestBuilder) throws Exception {
....
this.filterChain.reset();
...
This problem(PathVariable at final problem) had solved, see another thread discussion.
Tiny:
I think you should check whether dispatcher-servlet.xml naming space is correct or not.
According to 3.2 document, "content-negotiation-manager" is attribute of "mvc:annotation-driven"....
Tiny
Could you try to configure your dispatcher-servlet.xml with
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" />
<bean id="contentNegotiationManager"...
Tiny
I think you got the http 406 message is owing to the requested url "/wagafashion/ajax/GetStateList.htm" is ended in with ".html".
From spring 3.2 media type first decided by uri extension.
...
I found another problem.
Running attachment by execute "mvn jetty:run" command to run and go to http://localhost:8080/echo/.
Every thing is OK except type "Photo's name is Picture.jpg" in the...
I suspect error prone due to testng dataprovider running on different thread.
So I modify attachment and add a multiple threads testing and same problem occurs.
I think may be Mvc fluent...
Look at the thread has the same problem with yours.
I had spent a couple of days to try Spring 3.2 new mvc test feature for testing async request by asyncDispatch and some situation disturb me.(execute attachment by "mvn test" and look at the testing...
I make a example to redirect any request to port 8080 and redirect to a new location.
First "mvn package" and goto target folder to run "java -jar redirector.jar".
I wrote a test EJb3 ear project to run on Jboss 6.
I can't understand why <jee:xxxxxx-slsb> not work, could someone tell my how to resolve this problem?
My application-context.xml is
<beans...
package your.package;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanNotOfRequiredTypeException;
import...
I wrote some code to test @InitBinder for parameter converting.
Everything is right under spring testing code.
But when deploy to tomcat, I found PropertyEditor will not be called
if...
If you are going to deploy your project to JBoss 6+,
My suggestion is "give up Hibernate",
Because I had bad experience to deploy JBoss 6 with different Hibernate version library,
But you can...
anoop2811:
Yes,I already using expression rather then placeholder.
for example, I define some properties in
config.xml
<beans xmlns="http://www.springframework.org/schema/beans"...
...
Thanks for your reply.
There is a testResult.html in the attachment.
In this test program.
I insert ten documents and findOne() not over 1 sec, but findAll() spends 18 secs to read.
So I...
I am new to Spring-data-mongodb, and I found that findone problem had be solved in new version.
But I found QueryDslPredicateExecutor function using Predicate still has the same problem.
(see...
Look at Faq,
Https cookie can't be seen under http.
Move parentA\module1\src\main\resources files into parentA\module1\src\test\resources, then test success.
and module2 test failed owing to not found originalApplicationContext.xml in test...
According spring's document,it says that container will call "destroy-method" before it is going to be destroyed, Would you check whether you scheduled job still running after container closed?
Or...
http://static.springsource.org/spring-security/site/docs/3.1.x/reference/ns-config.html#ns-global-method
<global-method-security pre-post-annotations="enabled" />
Activate before using...