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。