Invalid mapping on handler class


Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'n' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext' - maybe not public or not valid?

 

 

太長時間沒敲代碼,當我們方法的形參要采用路徑中輸入的數據時,路徑中采用 {value} ,不能添加任何#或者$,方法中的形參前面要使用@PathVariable("Value")注解,括號內部的Value對應路徑上的{}內的n。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM