Search:

Type: Posts; User: kent.yeh; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. dinup: I believe your application must be...

    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"...
  2. dinup: If you want to use jackson with spring...

    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...
  3. dinup: Have you add jackson-core...

    dinup:
    Have you add jackson-core and jackson-databind?
    I just wrote a sample and it works.
  4. dinup: try to add produces to method...

    dinup:

    try to add produces to method switchUser

    Controller for this:
    @RequestMapping(method = RequestMethod.GET, value = { WebApplicationConstants.SWITCH_USER_URL }, produces =...
  5. Replies
    4
    Views
    509

    Solved! Spring 3.2 web test cannot running under multiple thread

    The MockMvc.java snip to display not thread safe.

    public ResultActions perform(RequestBuilder requestBuilder) throws Exception {
    ....
    this.filterChain.reset();
    ...
  6. Replies
    4
    Views
    509

    This problem(PathVariable at final problem) had...

    This problem(PathVariable at final problem) had solved, see another thread discussion.
  7. Tiny: I think you should check whether...

    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"....
  8. Tiny Could you try to configure your...

    Tiny
    Could you try to configure your dispatcher-servlet.xml with


    <mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" />
    <bean id="contentNegotiationManager"...
  9. Tiny I think you got the http 406 message is...

    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.
    ...
  10. Replies
    4
    Views
    509

    PathVariable at final problem

    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...
  11. Replies
    4
    Views
    509

    I suspect error prone due to testng dataprovider...

    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...
  12. Look at the thread...

    Look at the thread has the same problem with yours.
  13. Replies
    4
    Views
    509

    Spring 3.2 web async test (multiple thread test)

    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...
  14. Replies
    2
    Views
    1,147

    I make a example to redirect any request to port...

    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".
  15. problem with &

    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...
  16. package your.package; import...

    package your.package;

    import org.springframework.beans.BeansException;
    import org.springframework.beans.factory.BeanNotOfRequiredTypeException;
    import...
  17. Replies
    1
    Views
    320

    RequestParam collection question?

    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...
  18. If you are going to deploy your project to JBoss...

    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...
  19. anoop2811: Yes,I already using expression...

    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"...
    ...
  20. Thanks for your reply. There is a...

    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...
  21. I am new to Spring-data-mongodb, and I found that...

    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...
  22. Look at Faq...

    Look at Faq,
    Https cookie can't be seen under http.
  23. Move parentA\module1\src\main\resources files...

    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...
  24. Replies
    1
    Views
    698

    According spring's document...

    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...
  25. Replies
    2
    Views
    839

    http://static.springsource.org/spring-security/sit...

    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...
Results 1 to 25 of 26
Page 1 of 2 1 2