问答详情
源自:4-1 基于bootstrap开发页面结构

servlet.init()问题

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'seckillController' bean method
public org.seckill.dto.SeckillResult<java.lang.Long> org.seckill.web.SeckillController.time()
to {[/seckill],methods=[GET]}: There is already 'seckillController' bean method
public java.lang.String org.seckill.web.SeckillController.list(org.springframework.ui.Model) mapped.

提问者:学而无用 2019-06-05 16:19

个回答

  • 慕标8578355
    2019-11-14 14:08:37

    把requestMapping() 里面的name改成value之后还是报异常,最后把pom文件中的jackson依赖2.6.7版本改为2.9.8之后可运行

  • 慕瓜7018142
    2019-07-04 12:42:20

    requestMapping() 里面的name改成value