項目啟動失敗
項目在啟動時候報錯,Ambiguous mapping. Cannot map 'basicErrorController' method
public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
to {[/error]}: There is already 'errorController' bean method
2018-07-09
問題已解決。在controller上添加@Requestmapping("err")就可以了。這時候只有進(jìn)入err才會加載,而不會在一開始啟動時候就直接執(zhí)行