org.springframework.beans.factory.BeanCreationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 1886#232291813
    via GitHub by yisiqi
    ,
  • GitHub comment 37#180982141
    via GitHub by MarcGiffing
    ,
  • SpringBoot application crash
    via Stack Overflow by Aleksandrs Rudzitis
    ,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'accessTokenController' method protected org.springframework.web.servlet.ModelAndView org.apereo.cas.support.oauth.web.OAuth20AccessTokenController.handleRequestInternal(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception to {[/oauth2.0/accessToken],methods=[POST]}: There is already 'oauth20AccessTokenController' bean method protected org.springframework.web.servlet.ModelAndView org.apereo.cas.support.oauth.web.OAuth20AccessTokenController.handleRequestInternal(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.1.RELEASE.jar:4.3.1.RELEASE]

    Users with the same issue

    rp
    1 times, last one,
    Unknown visitor1 times, last one,
    linxiaolong
    3 times, last one,
    tfr
    2 times, last one,
    qavid
    24 times, last one,
    144 more bugmates