摘要: 1.判断提交方式 if(request.getMethod().equals("POST")) 2.返回json @ResponseBody 3.限定请求方式 @RequestMapping(value="/login",method= RequestMethod.POST) 4.session / 阅读全文
posted @ 2020-06-29 22:43 程序员子枫 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 安装typora 下载地址:https://www.typora.io/ 找到配置文件 picgo 的默认配置文件为~/.picgo/config.json。其中~为用户目录。不同系统的用户目录不太一样。 linux 和 macOS 均为~/.picgo/config.json。 windows 则 阅读全文
posted @ 2020-06-29 22:37 程序员子枫 阅读(768) 评论(0) 推荐(0) 编辑
摘要: ``` ``` ![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191120215659437-886320118.jpg) > 更多精彩文章请关注 [王明昌博客](https://www.wangmingchang.co 阅读全文
posted @ 2019-11-20 21:57 程序员子枫 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: ``` import requests #常用的形式 # requests.get() # requests.post() # requests.put() # requests.request('post') # 参数 # url='xxx', # params={'name':11,'pwd': 阅读全文
posted @ 2019-11-19 21:32 程序员子枫 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 形成的链接: http://localhost/index/cate/listt?id=123&name=dopost ``` $uurl_array =array ( 'id' =>123, 'name' => 'dopost' ); $now_url = 'http://'.$_SERVER[' 阅读全文
posted @ 2019-11-18 19:51 程序员子枫 阅读(251) 评论(0) 推荐(0) 编辑
摘要: ``` if($dk_list){ //合并另一个数组,组成新的数组 $res_33 = array_merge($_res2,$dk_list); //比较数组和移除数组中重复的值 进行比较个数 if (count($res_33) == count(array_unique($res_33))) 阅读全文
posted @ 2019-11-18 19:48 程序员子枫 阅读(595) 评论(0) 推荐(0) 编辑
摘要: ``` import requests from bs4 import BeautifulSoup ## 获取token r1 = requests.get('https://github.com/login') s1 = BeautifulSoup(r1.text,'html.parser') t 阅读全文
posted @ 2019-11-17 23:01 程序员子枫 阅读(233) 评论(0) 推荐(0) 编辑
摘要: ``` import requests from bs4 import BeautifulSoup response = requests.get("https://www.autohome.com.cn/news/") # 1. content /text 的区别 # print(response 阅读全文
posted @ 2019-11-17 22:14 程序员子枫 阅读(146) 评论(0) 推荐(0) 编辑
摘要: ## dao整合mybatis 1. 添加依赖 2. 写公共接口 3. 继承接口 在子类中引入父类 ![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212529658-1528481599.jpg) 引入依赖m 阅读全文
posted @ 2019-11-15 21:26 程序员子枫 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ``` /** * 求两个已知经纬度之间的距离,单位为米 * * @param lng1 $ ,lng2 经度 * @param lat1 $ ,lat2 纬度 * @return float 距离,单位米 * @author www.Alixixi.com */ function getdista 阅读全文
posted @ 2019-11-15 21:23 程序员子枫 阅读(146) 评论(0) 推荐(0) 编辑