自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(234)
  • 资源 (7)
  • 收藏
  • 关注

原创 理解docker的分层镜像实现 base 镜像共享(DockerFile)

Docker 镜像要采用这种分层结构最大的一个好处就是 - 共享资源。 比如:有多个镜像都从相同的 base 镜像构建而来,那么宿主机只需在磁盘上保存一份base镜像,同时内存中也只需加载一份 base 镜像,就可以为所有容器服务了。而且镜像的每一层都可以被共享。目录一、关于base镜像二、镜像、容器和存储驱动的关系三、最为典型的镜像的分层技术——aufs四、总结一、关于base镜像base 镜像有两层含义:不依赖其他镜像,从 scratch 构建...

2020-06-03 22:14:17 1919

转载 docker容器共享宿主机环境(目录挂载)

一、背景介绍  如果开发的服务均需要将打成docker镜像,可是随着服务越来越多,镜像也越来越多。每次制作镜像的时候都需要将依赖打进容器,这样一个jre的环境就是100多M。有一天突发奇想,容器能不能共用宿主机的环境?这样每次打镜像时体积就会少不少。二、测试  我们测试用的是java的web项目做的测试,框架用的springboot,由于集成了tomcat插件,所以web项目打成jar包即可运行。  1、在宿主机上安装jdk环境,目录在/home/softwares/jdk1.8.0_151

2020-06-03 21:23:06 2832 1

原创 关于Docker的跨平台

Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中,然后发布到任何流行的Linux或Windows机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。 由定义引发思考:“发布到任何流行的Linux或Windows机器上”,为什么能跨平台?镜像跨平台还是Docker跨平台?跨平台意味着不用考虑宿主...

2020-04-08 12:19:47 3138 2

原创 SpringCloud学习(3)-------使用IDEA快速搭建Rest微服务项目

一、技术选型SpringCloud SpringBoot SpringCloud Alibaba JAVA Maven MySQl Hoxton.SR1 2.2.2.RELEASE 2.1.0.RELEASE JDK8 3.5及以上 5.7及以上 SpringBoot版本不断更新,如果单独开发一个SpringBoot项目,版本...

2020-04-05 18:05:50 430

原创 SpringCloud学习(2)-------2020SpringCloud组件的停更、升级和替换

一、之前SpringCloud常用的微服务落地技术组件 落地技术 服务的注册与发现 Eureka 服务的负载与调用 Ribbon 服务的负载与调用 Feign 服务的熔断降级 Hystrix 服务网关 Zuul 服务的分布式配置 SpringCloud Config 服务开发 SpringBoot ...

2020-04-05 15:26:58 1212 3

原创 SpringCloud学习(1)-------微服务与SpringCloud概念

目录一、微服务和微服务架构二、微服务和分布式服务三、微服务与SpringCloud四、SpringCloud和SpringBoot五、SpringCloud和Dubbon参考网址:SpringCloud中文网https://springcloud.cc/ SpringCloud中文社区http://springcloud.cn/ ...

2020-04-05 11:51:03 199

原创 m表示为一些不超过n的自然数之和

/*设m,n均为自然数,m可表示为一些不超过n的自然数之和,f(m,n)为这种表示方式的数目。例:f(5,3)=5,有五种表示方式:3+2,3+1+1,2+2+1,2+1+1+1,1+1+1+1+1*/#include<stdio.h>int f(int m, int n);int main(){    int m,n,ans;    scanf("%d%d",...

2018-07-19 07:42:41 3361 2

转载 char varchar nvarchar

1. char     固定长度,最长n个字符。2. varchar     最大长度为n的可变字符串。(n为某一整数,不同数据库,最大长度n不同)char和varchar区别:     varchar必char节省空间,但在效率上比char稍微差一些。     说varchar比char节省空间,是因为varchar是可变字符串,比如:用var

2017-05-22 10:08:53 287

原创 PreparedStatement中的execute、executeQuery和executeUpdate之间的区别

该 PreparedStatement接口继承Statement,并与之在两方面有所不同:PreparedStatement 实例包含已编译的 SQL 语句。这就是使语句“准备好”。包含于 PreparedStatement 对象中的 SQL 语句可具有一个或多个 IN 参数。IN参数的值在 SQL 语句创建时未被指定。相反的,该语句为每个 IN 参数保留一个问号(“?”)作为占位符。每个

2017-04-19 20:27:24 8691

原创 URL

URL==Uniform  Resource  Locator代表资源的地址信息//:/http://www.jikexueyuan.com/path/

2017-04-19 18:01:31 274

原创 jdbc的代码实现

Web工程中建立class文件:package cn.edu.hpu.jdbc;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;public class JDBC { private String username="root"; private Str

2017-04-17 13:41:13 607

原创 request.getParameter("uname")和session.getAttribute("uname")有什么区别

前者是从request取数据,通俗说就是从浏览器取数据后者是从session取数据,也就是从服务器取自己的数据

2017-04-16 19:51:31 1530

原创 关于myeclipse中web project中文乱码的解决《过滤器Filter》

在使用HttpServletRequest.getParameter(String name)时我们可能会取得中文的乱码。问题描述:当利用getParameter()方法去取HTML元素中value值时当元素的value值为中文时用该方法取到的值可能为乱码。这时候我们需要的取得它的中文。 a) 方法一在利用getParameter方法之前添加如下语句 reques

2017-04-11 21:40:15 441

原创 service() doGet() doPost() 功能介绍

HttpServlet 里的三个方法:service(HttpServletRequest req, HttpServletResponse resp)                                             doGet(HttpServletRequest req, HttpServletResponse resp)                   

2017-04-11 19:29:37 455

原创 HDU2266How Many Equations Can You Find(深搜)

How Many Equations Can You FindTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 641    Accepted Submission(s): 421Problem Description

2016-10-07 17:57:25 328

原创 POJ 1942 Paths on a Grid【组合数学】

Paths on a GridTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 24879 Accepted: 6185DescriptionImagine you are attending your math lesson at school

2016-10-06 19:53:23 234

原创 Light-oj 1080 - Binary Simulation(线段树区间更新)

1080 - Binary SimulationPDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 64 MBGiven a binary number, we are about to do some operation

2016-10-06 14:46:00 282

原创 树状数组

如果给定一个数组,要你求里面所有数的和,一般都会想到累加。但是当那个数组很大的时候,累加就显得太耗时了,时间复杂度为O(n),并且采用累加的方法还有一个局限,那就是,当修改掉数组中的元素后,仍然要你求数组中某段元素的和,就显得麻烦了。所以我们就要用到树状数组,他的时间复杂度为O(lgn),相比之下就快得多。下面就讲一下什么是树状数组:         一般讲到树状数组都会少不了下面这个图:

2016-10-03 22:35:26 202

原创 500B New Year Permutation(Floyd)

B. New Year Permutationtime limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputUser ainta has a permutation p1

2016-09-18 17:27:56 269

原创 500A. New Year Transportation

time limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputNew Year is coming in Line World! In this world, there are n

2016-09-18 17:22:48 242

原创 STL————-unique算法

一.unique函数类属性算法unique的作用是从输入序列中“删除”所有相邻的重复元素。该算法删除相邻的重复元素,然后重新排列输入范围内的元素,并且返回一个迭代器(容器的长度没变,只是元素顺序改变了),表示无重复的值范围得结束。#include#includeusing namespace std;int main(){ int n; int a[11100]

2016-09-14 17:54:48 467

原创 Codeforces Round #371 (Div. 2)

A. Meeting of Old Friendstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday an outstanding event is goin

2016-09-14 09:43:04 221

原创 Codeforces Round #370 (Div. 2)

A. Memory and Crowtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n integers b1, b2, ..., bn wri

2016-09-11 13:51:34 255

原创 LightOJ 1047 Neighbor House (DP 数字三角形变形)

DescriptionThe people of Mohammadpur have decided to paint each of their houses red, green, or blue. They've also decided that no two neighboring houses will be painted the same color. The neigh

2016-09-10 00:39:04 375

原创 STL————-lower_bound和upper_bound算法

参考地址:  http://www.cnblogs.com/cobbliu/archive/2012/05/21/2512249.html  图解:ForwardIter lower_bound(ForwardIter first, ForwardIter last,const _Tp& val)算法返回一个非递减序列[first, last)中的第一个大于等于值val的位置。

2016-09-08 12:44:54 793

原创 Light OJ 1307 - Counting Triangles(lower_bound)

DescriptionYou are given N sticks having distinct lengths; you have to form some triangles using the sticks. A triangle is valid if its area is positive. Your task is to find the number of ways

2016-09-08 12:31:11 300

原创 LightOJ 1136 - Division by 3(找规律)

DescriptionThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Now you are given two integers A and B, you have to find the number of integers from Ath number to Bth (inclusive) number

2016-09-07 18:01:43 842

原创 杭电-5253 连接的管道(最小生成树变形kruscal)

连接的管道Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2432    Accepted Submission(s): 880Problem Description老 Jack 有一片农田,以往几年都是

2016-08-24 21:32:50 234

原创 POJ-1383-Labyrinth(广搜最大直径)

LabyrinthTime Limit: 2000MS Memory Limit: 32768KTotal Submissions: 3990 Accepted: 1501DescriptionThe northern part of the Pyramid contains a very large and comp

2016-08-24 20:54:39 398

原创 杭电-2059 龟兔赛跑 (基础DP)

龟兔赛跑Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16356    Accepted Submission(s): 6161Problem Description据说在很久很久以前,可怜的兔子经历了人生中最大的

2016-08-24 09:11:09 340

原创 Light-oj-1045 lightoj1045 - Digits of Factorial (N!不同进制的位数)

Time Limit: 2 second(s)Memory Limit: 32 MBFactorial (阶层)of an integer is defined by the following functionf(0) = 1f(n) = f(n - 1) * n, if(n> 0)So, factorial of 5 is 120. Bu

2016-08-23 21:43:26 290

原创 Light-oj-1282 Leading and Trailing(数学取位)

Leading and TrailingDescriptionYou are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk.Input

2016-08-23 21:12:31 294

原创 Light OJ - 1008 - Fibsieve`s Fantabulous Birthday (数学找规律)

Fibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts there was an N

2016-08-23 20:15:22 241

原创 CodeForces 632B Alice, Bob, Two Teams

B. Alice, Bob, Two Teamstime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob are playing a game

2016-08-23 10:45:42 195

原创 CodeForces 660A Co-prime Array (互质队列)

A. Co-prime Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of n elements, you

2016-08-23 09:47:32 320

转载 二分图匹配—匈牙利算法

本文转载地址: http://blog.csdn.net/q3498233/article/details/5786225二分图:二分图是这样一个图,它的顶点可以分类两个集合X和Y,所有的边关联的两个顶点恰好一个属于集合X,另一个属于集合Y。二分图匹配:给定一个二分图G,在G的一个子图M中,M的边集中的任意两条边都不依附于同一个顶点,则称M是一个匹配。最大匹配:图中包含边数

2016-08-20 19:51:29 288

原创 杭电-1317 XYZZY(最短路+正向环)

XYZZYTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1701    Accepted Submission(s): 419Problem DescriptionIt has recently been

2016-08-19 09:52:57 364

原创 杭电-1498 50 years, 50 colors(二分匹配)

50 years, 50 colorsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2309    Accepted Submission(s): 1299Problem DescriptionOn Octorbe

2016-08-18 20:20:10 321

原创 CodeForces 601A The Two Routes(最短路径)

A. The Two Routestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn Absurdistan, there are n towns (number

2016-08-18 15:53:50 289

原创 Codeforces Round #297 (Div. 2) D - Arthur and Walls (深搜)

D. Arthur and Wallstime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputFinally it is a day when Arthur has eno

2016-08-18 11:38:04 239

SpringCloudAlibaba&springCloud及常用微服务组件.zip

里面是SpringCloudAlibaba&springCloud的常用微服务组件,GitHub下载速度太慢,下载完整理一下传上来分享,包括(zookeeper、consul、seate、nacos、sentinel、rabbitmq及运行环境erlang)

2020-06-02

基于android的个人生活管家项目

使用说明 把源程序的压塑包解压,把bin文件夹下的.apk文件复制到手机上进行安装,就可以直接使用。使用时需要先登录,可以使用已注册过的用户名密码直接登录,也可以自己先进行注册,再登录使用。登录过后,通过功能集合界面,进行选择要使用的功能,进入相应的功能模块。

2018-05-29

C++项目源码(本科C++课程设计)

C+ +程序没計与立用源碼rar日C+ +反射的例子.rarRSA算法.rar avc+ +彷向DAO数据庫.rar追万文件央并建成目彖樹rar表格打印源碼.rar合庠管理系統rar■打字小程序.rar打字源程序.rar■屯子便箋1.O.rar 俄歹斯方埃源代碼.rarニ叉柎排序rar 言个人考勤軟件幵爰実例配套代碼.rar書汳字沢別rar 基本功能没計.rar筒単計算器rar 迸銷存軟件beta.rar 酷界面一拠子解决方案rar■理財助手2.0.rar 砲的裸男程序源代碼.rar 漂亮菜単CHSMenu V3.8.rar■人事管理系統rar 実現XP図格的自絵按鈕.rar貪吃蛇源代碼.rar日坦克大哉rar 通訊彖管理程序源代碼.rar昆示系統肘鰰的小程序.rar書学生成績管理系統(VC+ t),rar ■用VC+ +創建自定乂向尋程序》rar在対活框中加入属性更》配套代碼.rar

2018-05-29

15级C语言课程设计通讯录管理系统

1, 功能描述 这个通讯录系统也初步实现了人员信息的显示、删除、查找、添加等必要的功能。 ① 显示通讯录内的人员的姓名、地址、邮编、电话号码,Email。 ② 显示所有输入人员的信息,并按姓名排序显示。 ③ 添加人员信息。 ④ 通过输入姓名查找人员信息。 ⑤ 通过输入电话号码查找人员信息 ⑥ 通过输入姓名查找到要删除的人员信息,然后可以进行删除。 ⑦ 通过输入电话号码查找到要删除的人员信息,然后可以进行删除。

2018-05-29

CAD课程实验报告(三维雨伞的绘制)

目录 一、引言 1 二、设计内容与要求 2 三、设计流程剖析图 2 四、详细设计 3 4.1绘制雨伞轮廓线 3 4.1.1 绘制一个正多八边形 3 4.1.2绘制正八边形内接圆半径 4 4.1.3改变用户坐标系 4 4.1.4修剪弧形 5 4.1.5绘制伞顶曲面 6 4.2绘制雨伞伞杆和伞把 8 4.2.2绘制伞把 9 4.2.3绘制伞把顶端 9 4.2.4生成实体 10 4.3赋予材质及渲染 10 五、总结 11 5.1图形的优点 11 5.2图形的缺点 11 5.3分析归纳 11 六、参考文献 12

2018-05-29

计算机网络课程设计-客户端FTP软件的设计与实现

课程设计报告+使用说明+源码 摘要 1 一、引言 2 1.1 FTP工作原理 2 1.2 C/S原理 3 二、系统需求分析 3 2.1功能需求 3 2.3系统工作流程设计 4 三、系统详细设计 5 3.1主要模块设计: 5 3.2界面设计: 7 四、系统测试 10 五、系统使用说明 11 5.1程序说明 11 5.2操作流程 11 六、心得体会 12

2018-05-29

数据库课程设计 仓库物资管理系统(JAVAweb源码+mysql+设计报告)

包含文档,各种源码 一、 课程设计目的和要求………………………………………………….…3 二、课程设计过程…………………………………………………………….4 数据库设计的基本步骤如下:……………………………………………….4 1.需求分析阶段……………………………………………………………..4 1.1 应用背景……………………………………………………………4 1.2系统需求分析……………………………………….........................5 1.3系统可行性分析。………………………………………………….6 1.4系统E-R图……………………………………………………........6 2.概要设计…………………………………………………........................7 2.1开发系统的目的…………………………………………………….7 2.2系统模块的划分…………………………………………………….7 2.2.1基础信息管理…………………………………………............7 2.2.2库存管理..……………………………………………………..7 2.2.3商品销售………………………………………………………8 2.2.4查询统计………………………………………………………8 2.2.5往来管理………………………………………………………8 2.2.6系统设置……..………………………………………………..8 2.3数据库实施………………………………………………………….8 2.3.1CreateDatabase创建数据库…………………………………...8 2.3.2 Create Table 创建表…………………………………………9 3.前端设计………………………………………………………………..18 3.1详细实现…………………………………………………………….18 3.2 数据库的连接与访问………………………………………………18 3.3用户登录模块设计………………………………………………….20 3.4系统首页设计……………………………………………………….23 3.5主要功能展示……………………………………………………….23 三、课程设计心得…………………………………………………………….26 参考文献:…………………………………………………………………….27

2018-05-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除