1.@Deprecated 的功能
作废方法不建议使用的意思,使用的话方法名会出现中划线,当时不会影响方法的执行
2.@PathVariable
当使用@RequestMapping URI template 样式映射时, 即 someUrl/{paramId}, 这时的paramId可通过 @Pathvariable注解绑定它传过来的值到方法的参数上。
1.工作中遇到注解类的问题
最新推荐文章于 2024-06-25 22:11:41 发布
1.@Deprecated 的功能
作废方法不建议使用的意思,使用的话方法名会出现中划线,当时不会影响方法的执行
2.@PathVariable
当使用@RequestMapping URI template 样式映射时, 即 someUrl/{paramId}, 这时的paramId可通过 @Pathvariable注解绑定它传过来的值到方法的参数上。