报错Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping'。
在没写Controller之前是可以正常启动的。
就写了个简单的Controller
@Controller
@RequestMapping(value ="/User")
public class UserController {    @RequestMapping(value ="/login.do")
    @ResponseBody
    public UserInfo login(){
        return new UserInfo();
    }
}
Spring的配置文件是:
<context:component-scan base-package="com.business.Controller"/>    <mvc:annotation-driven>
        <mvc:message-converters>
            <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
                <property name="supportedMediaTypes">
                    <list>
                        <value>application/json;charset=UTF-8</value>
                    </list>
                </property>
            </bean>
        </mvc:message-converters>    </mvc:annotation-driven>
然后现在一直报这个错很想知道是什么原因,求大佬们帮忙解答一下。