12 2020 档案

摘要:JVM之运行时数据区 在哪里 详细图! Java虚拟机定义了若干种程序运行期间会使用到了运行时数据区,其中有一些会随着虚拟机启动而创建,随着虚拟机的退出而销毁。另外一些则是与线程一一对应的,这些线程对应的数据区会随着线程的开始和结束而创建和销毁 图中灰色为单独线程私有,红色为线程共享的 每个线程包括 阅读全文
posted @ 2020-12-31 14:46 告一段落 阅读(117) 评论(0) 推荐(0) 编辑
摘要:JVM之类加载器 所在位置 详细图 类加载子系统作用 类加载子系统负责从文件系统或者网络中加载class文件,class文件在文件开头有特定的文件标识、 ClassLoader只负责class文件的加载,至于它是否可以运行,则由Execution Egine(执行引擎)来决定。 加载的类信息存放于一 阅读全文
posted @ 2020-12-31 14:26 告一段落 阅读(83) 评论(0) 推荐(0) 编辑
摘要:shell script P 450 生成随机数 #$RANDOM 会随机生成0到32767之间的数 #一下生成0~30之间的数 declare -i num=$RANDOM*30/36767;echo $num 在编写script时经常需要用户输入信息,那么我们需要判断该变量是否赋值了,或者为空串 阅读全文
posted @ 2020-12-31 11:14 告一段落 阅读(189) 评论(0) 推荐(0) 编辑
摘要:字符转换命令: tr, col, join, paste, expand tr tr 可以用来删除一段讯息当中的文字,或者是进行文字讯息的替换! [root@www ~]# tr [-ds] SET1 ... 选项与参数: -d :删除讯息当中的 SET1 这个字符串; -s :取代掉重复的字符! 阅读全文
posted @ 2020-12-31 11:12 告一段落 阅读(96) 评论(0) 推荐(0) 编辑
摘要:查看硬盘使用情况 df -hl 查看目录使用情况 du -h 查看占用的端口 netstat -ntlp 查看当前目录占用大小:du -sh --max-depth=0 重命名命令: alias lm='ls -al' #将ls -al 命令重命名为lm,就可以直接使用了,使用alias可以查看当前 阅读全文
posted @ 2020-12-31 11:09 告一段落 阅读(203) 评论(0) 推荐(0) 编辑
摘要:Nginx 是一个轻量级的web服务器,可以支持反向代理、负载均衡,具有占用资源少,并发量大等特点。 下载 http://nginx.org/en/download.html 解压 tar -zxvf nginx-1.16.1.tar.gz ~ 进行预编译 cd /root/nginx-1.16.1 阅读全文
posted @ 2020-12-31 11:06 告一段落 阅读(2676) 评论(0) 推荐(1) 编辑
摘要:SpringBoot整合Druid pom.xml <!--Druid 连接池--> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.21</version> </depe 阅读全文
posted @ 2020-12-31 11:02 告一段落 阅读(61) 评论(0) 推荐(0) 编辑
摘要:IDEA 创建 Spring Boot项目 选择 JPA 和Mysql驱动 配置 application.yml spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3 阅读全文
posted @ 2020-12-31 10:59 告一段落 阅读(82) 评论(0) 推荐(0) 编辑
摘要:更新 package top.mgy.mybatistest.com.mp; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import org.junit.jupiter.api.Test; import 阅读全文
posted @ 2020-12-31 10:55 告一段落 阅读(112) 评论(0) 推荐(0) 编辑
摘要:导入pom <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.3.1.tmp</version> </dependency> mysql 阅读全文
posted @ 2020-12-31 10:54 告一段落 阅读(70) 评论(0) 推荐(0) 编辑
摘要:mybatis 中文官网 https://mybatis.org/mybatis-3/zh/index.html GAV <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5 阅读全文
posted @ 2020-12-31 10:52 告一段落 阅读(103) 评论(0) 推荐(0) 编辑
摘要:跳转至有道云查看 跳转至有道云 阅读全文
posted @ 2020-12-31 10:43 告一段落 阅读(33) 评论(0) 推荐(0) 编辑
摘要:跳转至有道云查看 跳转至有道云 阅读全文
posted @ 2020-12-31 10:36 告一段落 阅读(27) 评论(0) 推荐(0) 编辑
摘要:python操作mysql import pymysql import prettytable as pt # 连接mysql查看版本 db = pymysql.connect('localhost','root','root','pyspark') cursor = db.cursor() cur 阅读全文
posted @ 2020-12-29 17:04 告一段落 阅读(63) 评论(0) 推荐(0) 编辑
摘要:一个最简单的爬虫 from urllib.request import urlopen url = 'http://www.baidu.com' # 发送请求 response = urlopen(url) # 读取内容 info = response.read() # 打印内容 #print(in 阅读全文
posted @ 2020-12-27 22:10 告一段落 阅读(56) 评论(0) 推荐(0) 编辑
摘要:pyspark读取csv文本保存至MySQL案例 我们在使用spark处理完数据时,经常要将处理好的结果数据保存的如mysql等关系型数据库中,下面我们通过一个示例说明如何将spark处理好的数据保存到mysql中 csv文件如下 文件student.csv id,name,age 1,张三,23 阅读全文
posted @ 2020-12-24 22:29 告一段落 阅读(396) 评论(0) 推荐(0) 编辑
摘要:通常在Springboot项目开发完,我们需要在服务器上部署,那么该如何打包这些呢,需要在pom文件中加入springboot的打包依赖。 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifact 阅读全文
posted @ 2020-12-22 23:43 告一段落 阅读(110) 评论(0) 推荐(0) 编辑
摘要:使用renren-fast快速开发平台搭建后台管理系统 使用git下载项目 # 后台项目 git clone https://gitee.com/renrenio/renren-fast.git #前端项目 git clone https://gitee.com/renrenio/renren-fa 阅读全文
posted @ 2020-12-12 22:36 告一段落 阅读(103) 评论(0) 推荐(0) 编辑
摘要:gulimall_oms drop table if exists oms_order; drop table if exists oms_order_item; drop table if exists oms_order_operate_history; drop table if exists 阅读全文
posted @ 2020-12-11 18:27 告一段落 阅读(105) 评论(0) 推荐(0) 编辑
摘要:创建各个微服务模块 商品服务、仓储服务、订单服务、优惠券服务、用户服务 每个模块的共同点: - 1、每个模块都包含 web、OpenFeign - 2、每个服务的包名都统一为:top.mgy.gulimall.xxx(xxx表示模块名称,如product/order/ware/coupon/memb 阅读全文
posted @ 2020-12-10 01:18 告一段落 阅读(279) 评论(0) 推荐(0) 编辑
摘要:基础环境搭建 虚拟机创建 我们这里使用centos7作为学习开发环境 镜像文件下载地址 https://mirrors.aliyun.com/centos/7/isos/x86_64/ 进去选择一个iso镜像文件下载即可 在VM Ware中创建3个虚拟机 分别为cloud1、cloud2、cloud 阅读全文
posted @ 2020-12-07 23:11 告一段落 阅读(83) 评论(0) 推荐(0) 编辑