iOS9之后,默认网络请求是https,所有我们要设置一下网络安全,具体设置如下

1.第三方类库 XMLDictionary

下载地址:

https://github.com/nicklockwood/XMLDictionary

 

所用到的xml文件

http://www.meituan.com/api/v1/divisions?mtt=1.help%2Fapi.0.0.im7eandj

效果如下:

代码实现:

根视图:

rootTableViewController.m文件

  1. #import "rootTableViewController.h"
  2. #import "XMLDictionary.h"
  3. #import "secondViewController.h"
  4. @interface rootTableViewController ()
  5. @property(nonatomic,strong)NSArray *cityArr;
  6. @end
  7.  
  8. @implementation rootTableViewController
  9.  
  10. - (void)viewDidLoad {
  11. [super viewDidLoad];
  12.  
  13. NSString *path=@"http://www.meituan.com/api/v1/divisions?mtt=1.help%2Fapi.0.0.im77fqda";
  14.  
  15. NSURL *url=[NSURL URLWithString:path];
  16.  
  17. NSData *data=[NSData dataWithContentsOfURL:url];
  18.  
  19. XMLDictionaryParser *parser=[[XMLDictionaryParser alloc]init];
  20. NSDictionary *dic=[parser dictionaryWithData:data];
  21. self.cityArr=[NSArray arrayWithArray:dic[@"divisions"][@"division"]];
  22.  
  23. NSLog(@"%@",self.cityArr);
  24. [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"reuseIdentifier"];
  25.  
  26. self.title=@"城市列表";
  27.  
  28. // Uncomment the following line to preserve selection between presentations.
  29. // self.clearsSelectionOnViewWillAppear = NO;
  30.  
  31. // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
  32. // self.navigationItem.rightBarButtonItem = self.editButtonItem;
  33.  
  34. }
  35.  
  36. - (void)didReceiveMemoryWarning {
  37. [super didReceiveMemoryWarning];
  38. // Dispose of any resources that can be recreated.
  39. }
  40.  
  41. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  42. return self.cityArr.count;
  43. }
  44.  
  45. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  46. UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuseIdentifier" forIndexPath:indexPath];
  47.  
  48. cell.textLabel.text=self.cityArr[indexPath.row][@"name"];
  49. return cell;
  50. }
  51.  
  52. -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath{
  53. secondViewController *sec=[[secondViewController alloc]init];
  54. sec.location=self.cityArr[indexPath.row][@"location"];
  55. sec.title=self.cityArr[indexPath.row][@"name"];
  56. [self.navigationController pushViewController:sec animated:YES];
  57.  
  58. }
  59.  
  60. /*
  61. // Override to support conditional editing of the table view.
  62. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
  63. // Return NO if you do not want the specified item to be editable.
  64. return YES;
  65. }
  66. */
  67.  
  68. /*
  69. // Override to support editing the table view.
  70. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
  71. if (editingStyle == UITableViewCellEditingStyleDelete) {
  72. // Delete the row from the data source
  73. [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
  74. } else if (editingStyle == UITableViewCellEditingStyleInsert) {
  75. // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
  76. }
  77. }
  78. */
  79.  
  80. /*
  81. // Override to support rearranging the table view.
  82. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
  83. }
  84. */
  85.  
  86. /*
  87. // Override to support conditional rearranging of the table view.
  88. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
  89. // Return NO if you do not want the item to be re-orderable.
  90. return YES;
  91. }
  92. */
  93.  
  94. /*
  95. #pragma mark - Navigation
  96.  
  97. // In a storyboard-based application, you will often want to do a little preparation before navigation
  98. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  99. // Get the new view controller using [segue destinationViewController].
  100. // Pass the selected object to the new view controller.
  101. }
  102. */
  103.  
  104. @end

第二个视图:secondViewController.h

  1. #import <UIKit/UIKit.h>
  2.  
  3. @interface secondViewController : UIViewController
  4. @property(nonatomic,strong)NSDictionary *location;
  5. @property(nonatomic,strong)NSString *title;
  6.  
  7. @end

secondViewController.m文件

  1. #import "secondViewController.h"
  2.  
  3. @interface secondViewController ()
  4. @property(nonatomic,strong)UILabel *latitudeName;
  5. @property(nonatomic,strong)UILabel *longitudeName;
  6. @property(nonatomic,strong)UILabel *timezoneName;
  7. @property(nonatomic,strong)UILabel *latitude;
  8. @property(nonatomic,strong)UILabel *longitude;
  9. @property(nonatomic,strong)UILabel *timezone;
  10. @end
  11.  
  12. @implementation secondViewController
  13.  
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. [self setKongjian];
  17.  
  18. self.title=[NSString stringWithFormat:@"%@的经纬度",self.title];
  19.  
  20. self.view.backgroundColor=[UIColor colorWithRed:0.148 green:1.000 blue:0.946 alpha:1.000];
  21.  
  22. }
  23. -(void)setKongjian{
  24. self.latitudeName=[[UILabel alloc]initWithFrame:CGRectMake(, , , )];
  25. self.latitudeName.text=@"纬度:";
  26. self.latitude=[[UILabel alloc]initWithFrame:CGRectMake(, , , )];
  27. self.latitude.text=self.location[@"latitude"];
  28.  
  29. self.longitudeName=[[UILabel alloc]initWithFrame:CGRectMake(, , , )];
  30. self.longitudeName.text=@"经度:";
  31. self.longitude=[[UILabel alloc]initWithFrame:CGRectMake(, , , )];
  32. self.longitude.text=self.location[@"longitude"];
  33.  
  34. self.timezoneName=[[UILabel alloc]initWithFrame:CGRectMake(, , , )];
  35. self.timezoneName.text=@"时区:";
  36. self.timezone=[[UILabel alloc]initWithFrame:CGRectMake(, , , )];
  37. self.timezone.text=self.location[@"timezone"];
  38.  
  39. [self.view addSubview:self.latitudeName];
  40. [self.view addSubview:self.longitudeName];
  41. [self.view addSubview:self.timezoneName];
  42.  
  43. [self.view addSubview:self.latitude];
  44. [self.view addSubview:self.longitude];
  45. [self.view addSubview:self.timezone];
  46.  
  47. }
  48.  
  49. - (void)didReceiveMemoryWarning {
  50. [super didReceiveMemoryWarning];
  51. // Dispose of any resources that can be recreated.
  52. }
  53.  
  54. /*
  55. #pragma mark - Navigation
  56.  
  57. // In a storyboard-based application, you will often want to do a little preparation before navigation
  58. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  59. // Get the new view controller using [segue destinationViewController].
  60. // Pass the selected object to the new view controller.
  61. }
  62. */
  63.  
  64. @end

2.GDataXMLNode类库

具体配置过程如下

核心代码

  1. #import "rootTableViewController.h"
  2. #import "GDataXMLNode.h"
  3. #import "secondViewController.h"
  4. @interface rootTableViewController ()
  5. @property(nonatomic,strong)NSMutableDictionary *location;
  6. @property(nonatomic,strong)NSMutableArray *locationArr;
  7. @end
  8.  
  9. @implementation rootTableViewController
  10.  
  11. - (void)viewDidLoad {
  12. [super viewDidLoad];
  13.  
  14. self.locationArr=[NSMutableArray array];
  15. // 获取网络上的xml
  16. NSURL *url=[NSURL URLWithString:@"http://www.meituan.com/api/v1/divisions?mtt=1.help%2Fapi.0.0.im7envub"];
  17.  
  18. NSData *data=[NSData dataWithContentsOfURL:url];
  19.  
  20. // 使用NSData对象初始化
  21. GDataXMLDocument *doc=[[GDataXMLDocument alloc]initWithData:data options: error:nil];
  22.  
  23. // 获取根节点
  24. GDataXMLElement *rootElement=[doc rootElement];
  25.  
  26. // 获取根节点以下的节点
  27. GDataXMLElement *divisions=[[rootElement elementsForName:@"divisions"] objectAtIndex:];
  28. NSArray *division=[divisions elementsForName:@"division"];
  29.  
  30. // NSLog(@"%@",division);
  31. for (GDataXMLElement *div in division) {
  32. self.location=[NSMutableDictionary dictionary];
  33. // 获取name的节点
  34. GDataXMLElement *nameElement=[[div elementsForName:@"name"] objectAtIndex:];
  35. NSString *name=[nameElement stringValue];
  36.  
  37. // 获取location 的节点
  38. GDataXMLElement *location=[[div elementsForName:@"location"] objectAtIndex:];
  39.  
  40. // 获取latitude 的节点
  41. GDataXMLElement *latitudeElement=[[location elementsForName:@"latitude"] objectAtIndex:];
  42. NSString *latitude=[latitudeElement stringValue];
  43.  
  44. // 获取longitude 的节点
  45. GDataXMLElement *longitudeElement=[[location elementsForName:@"longitude"] objectAtIndex:];
  46. NSString *longitude=[longitudeElement stringValue];
  47.  
  48. // 把他们的值加到一个=字典中
  49. [self.location setObject:name forKey:@"name"];
  50. [self.location setObject:latitude forKey:@"latitude"];
  51. [self.location setObject:longitude forKey:@"longitude"];
  52.  
  53. // 把字典添加到可变集合中
  54. [self.locationArr addObject:self.location];
  55.  
  56. }
  57. self.title=@"城市列表";
  58. [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"reuseIdentifier"];
  59.  
  60. }
  61.  
  62. - (void)didReceiveMemoryWarning {
  63. [super didReceiveMemoryWarning];
  64. // Dispose of any resources that can be recreated.
  65. }
  66.  
  67. #pragma mark - Table view data source
  68.  
  69. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  70. return self.locationArr.count;
  71. }
  72.  
  73. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  74. UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuseIdentifier" forIndexPath:indexPath];
  75.  
  76. cell.textLabel.text=self.locationArr[indexPath.row][@"name"];
  77. return cell;
  78. }
  79.  
  80. -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath{
  81. secondViewController *sec=[[secondViewController alloc]init];
  82. // 把字典传递到第二个页面
  83. sec.location=self.locationArr[indexPath.row];
  84. [self.navigationController pushViewController:sec animated:YES];
  85.  
  86. }
  87.  
  88. /*
  89. // Override to support conditional editing of the table view.
  90. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
  91. // Return NO if you do not want the specified item to be editable.
  92. return YES;
  93. }
  94. */
  95.  
  96. /*
  97. // Override to support editing the table view.
  98. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
  99. if (editingStyle == UITableViewCellEditingStyleDelete) {
  100. // Delete the row from the data source
  101. [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
  102. } else if (editingStyle == UITableViewCellEditingStyleInsert) {
  103. // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
  104. }
  105. }
  106. */
  107.  
  108. /*
  109. // Override to support rearranging the table view.
  110. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
  111. }
  112. */
  113.  
  114. /*
  115. // Override to support conditional rearranging of the table view.
  116. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
  117. // Return NO if you do not want the item to be re-orderable.
  118. return YES;
  119. }
  120. */
  121.  
  122. /*
  123. #pragma mark - Navigation
  124.  
  125. // In a storyboard-based application, you will often want to do a little preparation before navigation
  126. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  127. // Get the new view controller using [segue destinationViewController].
  128. // Pass the selected object to the new view controller.
  129. }
  130. */
  131.  
  132. @end

第二个页面类似

3.系统自带的

核心代码

  1. #import "rootTableViewController.h"
  2. #import "secondViewController.h"
  3. @interface rootTableViewController ()<NSXMLParserDelegate>
  4. @property(nonatomic,strong)NSMutableArray *arr;
  5. @property(nonatomic,strong)NSMutableDictionary *dic;
  6.  
  7. @property(nonatomic,strong)NSString *str;
  8. @end
  9.  
  10. @implementation rootTableViewController
  11.  
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14.  
  15. NSURL *url=[NSURL URLWithString:@"http://www.meituan.com/api/v1/divisions?mtt=1.help%2Fapi.0.0.im7mg21x"];
  16. NSData *data=[NSData dataWithContentsOfURL:url];
  17.  
  18. NSXMLParser *parser=[[NSXMLParser alloc]initWithData:data];
  19.  
  20. parser.delegate=self;
  21.  
  22. BOOL bol=[parser parse];
  23. NSLog(@"%d",bol);
  24. self.title=@"城市列表";
  25. [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"reuseIdentifier"];
  26.  
  27. // Uncomment the following line to preserve selection between presentations.
  28. // self.clearsSelectionOnViewWillAppear = NO;
  29.  
  30. // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
  31. // self.navigationItem.rightBarButtonItem = self.editButtonItem;
  32. }
  33.  
  34. -(void)parserDidStartDocument:(NSXMLParser *)parser{
  35.  
  36. NSLog(@"start");
  37. self.arr=[NSMutableArray array];
  38. }
  39. -(void)parserDidEndDocument:(NSXMLParser *)parser{
  40. NSLog(@"end");
  41. NSLog(@"%@",self.arr);
  42. }
  43.  
  44. -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary<NSString *,NSString *> *)attributeDict{
  45.  
  46. if ([elementName isEqualToString:@"division"]) {
  47. self.dic=[NSMutableDictionary dictionary];
  48.  
  49. [self.dic setDictionary:attributeDict];
  50. }
  51. }
  52.  
  53. -(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{
  54. if ([elementName isEqualToString:@"name" ]||[elementName isEqualToString:@"latitude"]||[elementName isEqualToString:@"longitude"]) {
  55. [self.dic setObject:self.str forKey:elementName];
  56. }else if ([elementName isEqualToString:@"division"]){
  57. [self.arr addObject:self.dic];
  58. }
  59.  
  60. }
  61. -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
  62. self.str=string;
  63.  
  64. }
  65.  
  66. - (void)didReceiveMemoryWarning {
  67. [super didReceiveMemoryWarning];
  68. // Dispose of any resources that can be recreated.
  69. }
  70.  
  71. #pragma mark - Table view data source
  72.  
  73. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  74. return self.arr.count;
  75. }
  76.  
  77. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  78. UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuseIdentifier" forIndexPath:indexPath];
  79.  
  80. cell.textLabel.text=self.arr[indexPath.row][@"name"];
  81. return cell;
  82. }
  83.  
  84. -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  85. secondViewController *sec=[[secondViewController alloc]init];
  86. sec.location=self.arr[indexPath.row];
  87. [self.navigationController pushViewController:sec animated:YES];
  88.  
  89. }
  90.  
  91. /*
  92. // Override to support conditional editing of the table view.
  93. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
  94. // Return NO if you do not want the specified item to be editable.
  95. return YES;
  96. }
  97. */
  98.  
  99. /*
  100. // Override to support editing the table view.
  101. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
  102. if (editingStyle == UITableViewCellEditingStyleDelete) {
  103. // Delete the row from the data source
  104. [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
  105. } else if (editingStyle == UITableViewCellEditingStyleInsert) {
  106. // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
  107. }
  108. }
  109. */
  110.  
  111. /*
  112. // Override to support rearranging the table view.
  113. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
  114. }
  115. */
  116.  
  117. /*
  118. // Override to support conditional rearranging of the table view.
  119. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
  120. // Return NO if you do not want the item to be re-orderable.
  121. return YES;
  122. }
  123. */
  124.  
  125. /*
  126. #pragma mark - Navigation
  127.  
  128. // In a storyboard-based application, you will often want to do a little preparation before navigation
  129. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  130. // Get the new view controller using [segue destinationViewController].
  131. // Pass the selected object to the new view controller.
  132. }
  133. */
  134.  
  135. @end

iOS xml文件的解析方式 XMLDictionary,GDataXMLNode,NSXMLParser的更多相关文章

  1. 用java操作XML文件(DOM解析方式)

    XML 可扩展标记语言(Extensible Markup Language),是独立于软件和硬件的传输工具. XML的作用: (1)用作配置文件 (2)简化数据共享 (3)简化数据传输 XML DO ...

  2. XML文件的解析方式

    XML文件4种解析方式分别是:DOM解析,SAX解析,JDOM解析,DOM4J解析.1.基础方法:DOM:与平台无关的官方的解析方式.SAX:Java平台提供的基于事件驱动的解析方式.2.扩展方法(在 ...

  3. [置顶] Android开发之XML文件的解析

    Android系统开发之XML文件的解析 我们知道Http在网络传输中的数据组织方式有三种分别为:XML方式.HTML方式.JSON方式.其中XML为可扩展标记语言,如下: <?xml vers ...

  4. mybatis源码-解析配置文件(一)之XML的DOM解析方式

    目录 简介 Java 中 XML 文件解析 解析方式 DOM 解析 XML 新建 XML 文件 DOM 操作相关类 Java 读取 XML 文件 一起学 mybatis @ 简介 在之前的文章< ...

  5. 用SAX和PULL进行XML文件的解析与生成

    XML解析有传统的dom方法还有Jsoup,SAX,PULL等,这里讲的是比较省内存的SAX和PULL方法.Android中极力推荐用PULL的方式来解析,我个人觉得pull确实比较简单,但其内部的逻 ...

  6. 【文件处理】xml 文件 DOM解析

    一.Java解析xml.解析xml四种方法.DOM.SAX.JDOM.DOM4j.XPath 此文针对其中的DOM方法具体展开介绍及代码分析 sax.dom是两种对xml文档进行解析的方法(没有具体实 ...

  7. 使用java代码动态配置与xml文件结合的方式使用mybatis-generator生成代码配置

    1.使用java代码动态配置与xml文件结合的方式使用mybatis-generator生成代码配置 2.上代码:在resources目录下新建:generatorConfiguration.xml文 ...

  8. JDOM方法实现对XML文件的解析

    首先要下载JDOM.jar包,下载地址:http://download.csdn.net/detail/ww6055/8880371 下载到JDOM.jar包之后导入到工程中去. 实例程序: book ...

  9. iOS Crash文件的解析

    iOS Crash文件的解析 开发程序的过程中不管我们已经如何小心,总是会在不经意间遇到程序闪退.脑补一下当你在一群人面前自信的拿着你的App做功能预演的时候,流畅的操作被无情地Crash打断.联想起 ...

随机推荐

  1. MyBatis3:SQL映射

    前言 前面学习了config.xml,下面就要进入MyBatis的核心SQL映射了,第一篇文章的时候,student.xml里面是这么写的: <?xml version="1.0&qu ...

  2. Phaser-游戏之旅

    虽然这个小游戏逻辑不是很复杂,但为了熟悉Phaser这个游戏框架的使用方法所以就选择了它. 另外第一次在项目中尝试使用ES6,之后利用babel进行转换. 自动化构建:gulp(其他文件复制和解析) ...

  3. Jquery双向select控件Bootstrap Dual Listbox

    效果预览: 一. 下载插件 github地址:https://github.com/istvan-ujjmeszaros/bootstrap-duallistbox 也可以在这个网站中下载:http: ...

  4. 转职成为TypeScript程序员的参考手册

    写在前面 作者并没有任何可以作为背书的履历来证明自己写作这份手册的分量. 其内容大都来自于TypeScript官方资料或者搜索引擎获得,期间掺杂少量作者的私见,并会标明. 大部分内容来自于http:/ ...

  5. [转]keil使用详解

    第一节 系统概述 Keil C51是美国Keil Software公司出品的51系列兼容单片机C语言软件开发系统,与汇编相比,C语言在功能上.结构性.可读性.可维护性上有明显的优势,因而易学易用.用过 ...

  6. win10更新系统后wifi连接不上了怎么解决?

    遇到了一个小问题,由于更新了一下win10,发现wifi不能用了,以为是wifi密码错了,选择忘记密码试了两次,又试了不同的wifi都不行,发现网卡无线驱动也没事,在网上百度了好久发现说的方法都没用, ...

  7. JavaScript 闭包深入浅出

    闭包是什么? 闭包是内部函数可以访问外部函数的变量.它可以访问三个作用域:首先可以访问自己的作用域(也就是定义在大括号内的变量),它也能访问外部函数的变量,和它能访问全局变量. 内部函数不仅可以访问外 ...

  8. ★Kali信息收集~★7.FPing :ip段扫描

    参数: 使用方法: fping [选项] [目标...] -a显示是活着的目标 -A 显示目标地址 -b n 大量 ping 数据要发送,以字节为单位 (默认 56) -B f 将指数退避算法因子设置 ...

  9. 前端学HTTP之基本认证

    前面的话 人们用Web进行私人事务处理,访问私有的数据.通过Web可以很方便地访问这些信息,但仅仅是方便访问还是不够的.我们要保证只有特定的人能看到我们的敏感信息并且能够执行我们的特权事务 服务器需要 ...

  10. spring boot(一):入门篇

    构建微服务:Spring boot 入门篇 什么是spring boot Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程.该框 ...