![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
Eickrow
正在养成写博客的习惯.......
展开
-
RestTemplate整合HttpClient
Spring框架的RestTemplate+Httpclient的代码配置:配置代码@Configuration public class RestTemplateConfig { private Logger log = Logger.getLogger(this.getClass()); @Bean public RestTemplate restTemplate() {原创 2016-10-23 19:14:51 · 5820 阅读 · 0 评论 -
JSP页面调用Spring容器注入的Bean
首先在jsp中导入<jsp:directive.page import="org.springframework.web.context.WebApplicationContext"/>然后可以调用Spring容器管理的Bean了:<% WebApplicationContext context = (WebApplicationContext)this.getServletContext().转载 2016-10-24 09:14:55 · 486 阅读 · 0 评论