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。