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...
Type: Posts; User: Bohtvaroh; Keyword(s):
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...
You willn't lose anything. What you thing you will lose?
Like this:
<!-- enable @MVC annotations -->
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="alwaysUseFullPath"...
Currently brackets are still needed. Is this by design?
Please, try enabling the following property on your HandlerMapping objects.
<property name="alwaysUseFullPath" value="true"/>
Thanks, Luke. Now the migration is done. Good work!
Thanks, Luke.
Another problem I got:
Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
These jars:...
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.
Thanks. You're right. This is the damn IDE misleaded me.
Yes, as you see - I am using it in the examples above.
Found one solution. Here is the code:
/**
* Custom indirect bean factory for special application purposes.
*/
public class IndirectBeanFactory {
/**
* Get bean by class.
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...
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...
Sure:
/**
* "mfp_calllog_get" stored procedure wrapper.
*/
public class MFPCallLogGetStoredProcedure implements MFPStoredProcedure {
/**
* Stored procedure name.
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...
Switching to plain JDBC resolved the problem.
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.
*/...
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...
One possible way is to subclass CommonsMultipartResolver:
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import...
Great thanks!
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....
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):
Hm, you're right, introducing ServiceExceptionTranslatorAspect for each service seems nice idea for me and really solves my problems.
Thank you, regards.
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.
Hi all.
I am using such confuration to make my services transactional:
<!-- ================== -->
<!-- Transactions setup -->
<!-- ================== -->
<aop:config>