![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
千军辟易
沉迷是一种力量,让人在快乐中进步
展开
-
@PathValue 与@ResuestParam
1.@PathValue一般用于restfull风格http://localhost:8080/member/SelectUserByids/1/2如上连接,在后台则为@RequestMapping("/SelectUserByids/{pageNum}/{pageSize}")public JSONObject selectUser(@PathValue int pageNum,@PathValue int pageSize){}2.@ResuestParam用于普通请求,获取问号原创 2021-08-01 09:20:10 · 896 阅读 · 0 评论 -
Spring 装配Bean 基于注解
注解:就是一个类,使用@注解名称 开发中:使用注解 取代 xml配置文件。 1. @Component取代<bean class=""> @Component("id") 取代 <bean id="" class="">2.web开发,提供3个@Component注解衍生注解(功能一样)取代<bean class="">...原创 2019-12-01 17:27:34 · 90 阅读 · 0 评论