学而无用
2019-06-05 16:19
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.
把requestMapping() 里面的name改成value之后还是报异常,最后把pom文件中的jackson依赖2.6.7版本改为2.9.8之后可运行
requestMapping() 里面的name改成value
Java高并发秒杀API之web层
66084 学习 · 395 问题
相似问题
回答 2