码迷,mamicode.com
首页 > 编程语言
spring-cloud-openfeign maven依赖
spring-cloud-openfeignusesOpenFeign9.tillv2.0.3.RELEASEanduses10.after.Anyway,thedependencyalreadyhassuitablefeign-formversion,seedependencypom,soyoudon‘tneedtospecifyitseparately;spring-cloud-sta
分类:编程语言   时间:2020-09-15 21:14:38    阅读次数:41
SpringBoot
1.第一个springboot applicat.properties: server.port=80 可以更改运行端口号 banner.text 在resource文件夹中加入banner.text网上搜springboot的运行图行,添加进去就可以改变运行出来的图形了。banner.text: ...
分类:编程语言   时间:2020-09-15 21:06:58    阅读次数:95
python的深浅拷贝
直接赋值:其实就是对象的引用(别名)。 浅拷贝(copy):拷贝父对象,不会拷贝对象的内部的子对象。 深拷贝(deepcopy): copy 模块的 deepcopy 方法,完全拷贝了父对象及其子对象。 (1)当a中没有子对象时 import copy a = [1, 2, 3, 4, "hello ...
分类:编程语言   时间:2020-09-15 21:05:15    阅读次数:33
原生js 以ajax(post)的方式传json至php,并让php解析为数组
如题。 比如要把一个json,如 json= {name:"John Rambo", time:"3pm"},,通过js ,传到一个php服务器 fwq.php中,并解析为数组。 方法如下。 js //建立协议 xmlhttp=new XMLHttpRequest(); xmlhttp.onread ...
分类:编程语言   时间:2020-09-15 21:02:07    阅读次数:40
Acwing-----算法基础课之第二讲(数据结构二)
835 Trie字符串统计 链接:https://www.acwing.com/problem/content/837/ #include <iostream> using namespace std; const int N = 100010; int n; int son[N][26], cnt ...
分类:编程语言   时间:2020-09-15 20:53:33    阅读次数:49
63.Java创建多线程方式二实现Runnable接口
创建线程的方式二实现Runnable接口 创建线程的第二种方式.使用Runnable接口. 该类中的代码就是对线程要执行的任务的定义. 1:定义了实现Runnable接口 2:重写Runnable接口中的run方法,就是将线程运行的代码放入在run方法中 3:通过Thread类建立线程对象 4:将R ...
分类:编程语言   时间:2020-09-15 20:52:20    阅读次数:38
ES6 数值、数组、对象、函数方法
ES6中数值的用法 Number.isNaN()函数:用于判断传入的是否是非数值 , NaN(非数值),才返回true console.log(Number.isNaN(2.5)); //false console.log(Number.isNaN('abc')); //false console. ...
分类:编程语言   时间:2020-09-15 20:51:15    阅读次数:30
es6 数组操作
1、Array.of() 将任意一组值转换为数组 //Array.of() // var arr = new Array(1, 2, 3, 5, 8) // var str = '12,3,5,6,ss' // console.log(Array.of(str)) 2、Array.from() 将类 ...
分类:编程语言   时间:2020-09-15 20:49:27    阅读次数:44
SpringBoot JPA实现增删改查
pom.xml文件 可以拿走直接用 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependenc ...
分类:编程语言   时间:2020-09-14 19:20:49    阅读次数:50
SpringMVC框架的注解如何使用?
SpringMVC注解的方式@Controller@RequestMapping@SessionAttributes案例实操@Controller控制器定义在spring3.0中,通过@controller标注即可将class定义为一个controller类。为使springMVC能找到定义为controller的bean,需要在servlet-context配置文件中增加如下定义:<con
分类:编程语言   时间:2020-09-14 19:19:51    阅读次数:55
spring5自学之路 狂神说
1. Spring介绍 1.1 简介 Spring : 春天 >给软件行业带来了春天 2002年,Rod Jahnson首次推出了Spring框架雏形interface21框架。 2004年3月24日,Spring框架以interface21框架为基础,经过重新设计,发布了1.0正式版。 很难想象R ...
分类:编程语言   时间:2020-09-14 19:17:41    阅读次数:47
Springboot整合mybatis:Invalid bound statement (not found)
Invalid bound statement (not found) ...
分类:编程语言   时间:2020-09-14 19:15:55    阅读次数:50
java.lang.NumberFormatException: For input string: "method:{0}.{1}"处理
写测试时用占位符 MessageFormat.format 输出报错 仔细查看了一下我的语句 System.out.println(MessageFormat.format( "{method:{0}.{1},params:{2},user:[id:{3},username:{4}],ip:{5}, ...
分类:编程语言   时间:2020-09-14 19:07:03    阅读次数:64
C++ 增加预处理宏的方法
C++ 增加预处理宏的方法 前几天写题的时候发现,我使用的fread在oj上并没有比执行了ios::sync_with_stdio(false)的cin更快,最后发现并不是fread的问题,而是因为我增加了这样一条信息 #ifdef _WIN32 return getchar(); #endif 而 ...
分类:编程语言   时间:2020-09-14 19:06:22    阅读次数:43
Python爬虫,京东商品详情爬取!
最近因需求需要,需要到京东爬取一些类别的商品信息。记录下过程中踩过的坑,最后奉献上全部代码。仅供互相学习,如有错误请指正~~ 京东网页翻页。京东的页面是打开时先加载前30个商品,浏览到下面时再加载另30个商品。加载前30个商品时 page=1,后30个商品时 page=2。所以京东的翻页可以用req ...
分类:编程语言   时间:2020-09-14 19:06:06    阅读次数:50
spring注解整理
springboot注解整理 常用注解: @SpringBootApplication:申明让spring boot自动给程序进行必要的配置,这个配置相当于: @Configuration,@EnableAutoConfiguration和 @ComponentScan三个配置。 @EnableAu ...
分类:编程语言   时间:2020-09-14 19:04:58    阅读次数:33
Python采集CSDN博客排行榜数据
文章目录 前言 网络爬虫 搜索引擎 爬虫应用 谨防违法 爬虫实战 网页分析 编写代码 运行效果 反爬技术 前言 很多人学习python,不知道从何学起。很多人学习python,掌握了基本语法过后,不知道在哪里寻找案例上手。很多已经做案例的人,却不知道如何去学习更加高深的知识。那么针对这三类人,我给大 ...
分类:编程语言   时间:2020-09-14 19:03:47    阅读次数:48
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!