Announcement Announcement Module
Collapse
No announcement yet.
@Service And xml config combimation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @Service And xml config combimation

    Hi! Pls help to resolve next problem. I moved to Spring 3.1 from the old version. And rewrite all service classes using the annotation @Service. But a have such code in xml:

    Code:
    <bean id="rememberMeService" class="org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices">
    		<property name="userDetailsService" ref="userService"/>
    		<property name="key" value="meritkapital"/>
    		<property name="tokenRepository" ref="jdbcTokenRepository"/>
    		<property name="alwaysRemember" value="false" />
    	</bean>
    where i have to use annotated service!!!! but i got :
    Code:
    No bean named 'userService' is defined
    how to fix it ?

  • #2
    When you annotated your user service with @Service did you specify it's name?

    http://static.springsource.org/sprin...name-generator

    Comment

    Working...
    X