@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
2019-10-17
解決了,出現(xiàn)重名方法。重命名即可