问答详情
源自:7-1 SpringBoot配置全局的异常捕获 - web页面跳转

@ExceptionHandler 报错 is not an annotation.

手动import时报错:

Multiple markers at this line
    - Syntax error on token "ExceptionHand", ; expected after this token
    - The import org.springframework.web.bind.annotation.ExceptionHandler conflicts with a type defined in the
     same file
    - The import org.springframework.web.bind.annotation.ExceptionHand cannot be resolved

提问者:星辰M 2019-10-17 14:36

个回答

  • 星辰M
    2019-10-17 14:48:41

    解决了,出现重名方法。重命名即可