
Spring
文章平均质量分 71
yswape
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring RestTemplate 使用与HttpClient
1.引入 java请求网络资源通常用HttpClient等,Spring封装了库,提供更为简洁的资源请求方式RestTemplate。 2.简单GET请求(HttpClient/RestTemplate) HttpClient private static final CloseableHttpClient httpclient = HttpClients.createDef...原创 2018-03-12 17:58:30 · 34114 阅读 · 2 评论 -
Spring 多数据源
application.properties management.endpoints.web.exposure.include=* spring.output.ansi.enabled=always foo.datasource.url=jdbc:h2:mem:foo foo.datasource.username=sa foo.datasource.password= bar.datas...转载 2019-02-23 15:26:56 · 241 阅读 · 0 评论