Search:

Type: Posts; User: Bohtvaroh; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    1,716

    Just set up things the way the default strategy...

    Just set up things the way the default strategy does, or alternatively create a Spring bean, inject handler mappings you need into it using @Autowired approach and use this bean to set their...
  2. Replies
    6
    Views
    1,716

    You willn't lose anything. What you thing you...

    You willn't lose anything. What you thing you will lose?
  3. Replies
    6
    Views
    1,716

    Like this:

    Like this:



    <!-- enable @MVC annotations -->
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
    <property name="alwaysUseFullPath"...
  4. Replies
    5
    Views
    4,076

    Currently brackets are still needed. Is this by...

    Currently brackets are still needed. Is this by design?
  5. Please, try enabling the following property on...

    Please, try enabling the following property on your HandlerMapping objects.



    <property name="alwaysUseFullPath" value="true"/>
  6. Replies
    12
    Views
    9,487

    Thanks, Luke. Now the migration is done. Good...

    Thanks, Luke. Now the migration is done. Good work!
  7. Replies
    12
    Views
    9,487

    Thanks, Luke. Another problem I got: ...

    Thanks, Luke.

    Another problem I got:


    Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]

    These jars:...
  8. Replies
    12
    Views
    9,487

    QQ. What should we use now instead of...

    QQ.

    What should we use now instead of TargetUrlResolver? I use custom URL resolver in my app to redirect to different URLs based on user role.
  9. Thanks. You're right. This is the damn IDE...

    Thanks. You're right. This is the damn IDE misleaded me.
  10. Yes, as you see - I am using it in the examples...

    Yes, as you see - I am using it in the examples above.
  11. Found one solution. Here is the code: /**...

    Found one solution. Here is the code:



    /**
    * Custom indirect bean factory for special application purposes.
    */
    public class IndirectBeanFactory {
    /**
    * Get bean by class.
  12. It's possible to write a bean with a static...

    It's possible to write a bean with a static factory method and call the method (using factory-method configuration attribute) passing class name to instantiate. But things become worst when I need to...
  13. Move bean's class attribute value to external properties

    Hello, Dear Community.

    I'm searching for a way to externalize a bean's class attribute to properties file.

    For example, I have



    <property name="jpaDialect">
    <bean...
  14. Sure: /** * "mfp_calllog_get" stored...

    Sure:



    /**
    * "mfp_calllog_get" stored procedure wrapper.
    */
    public class MFPCallLogGetStoredProcedure implements MFPStoredProcedure {
    /**
    * Stored procedure name.
  15. Thank you for the reply. I've just tried...

    Thank you for the reply.

    I've just tried JdbcTemplate.query(...) but it hangs with "syntax error". I have no time to investigate further so I'll stay with my current implementation.

    One problem...
  16. Switching to plain JDBC resolved the problem.

    Switching to plain JDBC resolved the problem.
  17. RowMapper registered for SqlOutParameter is not called in StoredProcedure

    Hello, dear community.

    I use Spring StoredProcedure abstraction to wrap the PL/PGSQL stored procedure which returns SETOF object.



    /**
    * "mfp_calllog_get" stored procedure wrapper.
    */...
  18. Did someone succeeded with this? The stored...

    Did someone succeeded with this? The stored procedure I need to wrap returns SETOF of such types:



    CREATE TYPE atype AS (
    id bigint,
    msgnum integer,
    callerid character varying,
    origtime...
  19. One possible way is to subclass...

    One possible way is to subclass CommonsMultipartResolver:



    import java.util.Collections;
    import java.util.List;

    import javax.servlet.http.HttpServletRequest;

    import...
  20. Great thanks!

    Great thanks!
  21. I debugged my issue and I see that: 1....

    I debugged my issue and I see that:

    1. RememberMeProcessingFilter is called and it puts Authentication object to the SecurityContextHolder
    2. My controller is called (???)
    3....
  22. "remember-me" doesn't put SPRING_SECURITY_CONTEXT into the session

    Hi all.

    I use such EL expressions to put user information on my JSPs:



    ${SPRING_SECURITY_CONTEXT.authentication.principal.username}


    and I got the following trouble (steps to reproduce):
  23. Hm, you're right, introducing...

    Hm, you're right, introducing ServiceExceptionTranslatorAspect for each service seems nice idea for me and really solves my problems.

    Thank you, regards.
  24. I don't think this code should be in an aspect...

    I don't think this code should be in an aspect since different service methods may throw different exceptions, so this is not crosscutting concern.
  25. DAO exceptions aren't caught in service with my transactions setup

    Hi all.

    I am using such confuration to make my services transactional:



    <!-- ================== -->
    <!-- Transactions setup -->
    <!-- ================== -->
    <aop:config>
Results 1 to 25 of 72
Page 1 of 3 1 2 3