Results 1 to 2 of 2

Thread: @Service And xml config combimation

  1. #1
    Join Date
    May 2009
    Posts
    21

    Default @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. #2
    Join Date
    Dec 2010
    Location
    Singapore
    Posts
    287

    Default

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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •