解決xx is not an annotation type

在這裏插入圖片描述
初學Springboot和Java,寫Spring的controller的時候遇到了controller is not an annotation type的問題,解決。
原因是註解不能與類名同名,所以改個名字就ok了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章