zoukankan      html  css  js  c++  java
  • springmvc 映射重复

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'bookController' method
    public cn.qlu.yhy.model.Page<cn.qlu.yhy.model.Book> cn.qlu.yhy.controller.BookController.findPageAboutBook(cn.qlu.yhy.model.Page<cn.qlu.yhy.model.Book>,javax.servlet.http.HttpSession) throws javax.servlet.ServletException,java.io.IOException
    to {[/book/myBook],methods=[GET]}: There is already 'bookController' bean method

    检查一下提示的controller 中的方法, 存在映射路径相同的情况

  • 相关阅读:
    第四章5
    第四章4
    第四章3
    第四章2
    第四章1
    第四章例4-8
    第四章例4-7
    第四章例4-6
    第四章例4-5
    第四章例4-4
  • 原文地址:https://www.cnblogs.com/y654063871/p/6702061.html
Copyright © 2011-2022 走看看