UserDetail is an Central Interface which can provide userInformation like email , employee number etc.. To provide those Information You need to provide the userService inside the spring context. You can include a custom userService by implementing UserDetailService interface. It has following method.
UserDetails loadUserByUsername(String username) throws UsernameNotFoundExceptionSpring provide Some UserService based on Memory Map and JdbcDao. You can use those or you can implement your own.

No comments:
Post a Comment