i\'ve problems in order to autowire a service in my controller. I\'ve this error:
org.springframework.beans.factory.BeanCreationException: Error creating bean wi
You need to change the way you have autowired the service in the controller.
Change the following code
@Autowired
private UserService userService;
with following
@Resource(name="userService")
private UserService userService;
Because in the UserServiceImpl you have defined the @Service annotation with alias "userService".
I hope this would resolve your problem. :)