摘要: 假设url为:http://www.baidu.com 1、参数以@Pathvariable (String id)修饰的话,那么url为http://www.baidu.com/12 2、参数以@RequestParam修饰的话,在Query Param输入key和value,url http:/ 阅读全文
posted @ 2020-08-05 20:28 曾饺 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 首先明确一点,Spring上下文是为了解决无法自动注入而扩展使用的。 相关代码如下: public class SpringContextUtils implements ApplicationContextAware { /** * spring应用上下文环境 */ private static 阅读全文
posted @ 2020-08-05 17:05 曾饺 阅读(421) 评论(0) 推荐(0) 编辑