- 博客(54)
- 资源 (5)
- 收藏
- 关注
原创 nginx安装及使用-MacOS
文章目录brew install nginx运行nginx配置nginx代理配置启动异常nginx实现反向代理brew install nginx$ brew install nginx ==> nginxDocroot is: /usr/local/var/wwwThe default port has been set in /usr/local/etc/nginx/ngi...
2020-04-19 17:10:48
1221
原创 Jwt+Gateway+nacos+redis实现免登录
文章目录整体实现响应设计redis设计登录操作中redis操作网关过滤登录路由项目jwt-api 公共接口类Maven定义实体类,统一返回类型AdminRJwtClientjwt-Gateway web项目Maven依赖跨域设置-定义CorsWebFilter的Beannacos服务注册 -application.ymljwt配置-application.properties????????JwtUtils工...
2020-04-15 14:04:57
4106
1
原创 linux安装及Parallels_Desktop_15安装
https://www.runaccepted.com/2020/03/30/linux安装文章目录Parallels Desktop 15 安装安装win10CentOS 7下载及配置查看ip-固定ipip相关配置文件Mac 连接linux防火墙yum源中加入阿里云源安装docker重启后docker无法启动克隆linuxMac 连接linux2再重启ssh拒绝 Connection refu...
2020-03-31 19:44:58
1926
1
原创 ElasticSearch安装
文章目录安装ElasticSearchlinux版ElasticSearch 存储和检索数据Logstash 收集数据保存到esKibana 可视化界面树莓派版elasticsearch-1.0.1Kibana-3.0.0logstash-2.0.0运行出错 libjffi-1.2.so创建Maven依赖logback-spring.xml运行SpringBoot安装ElasticSearch...
2020-03-29 17:45:46
856
原创 MyEclipse自动代码补全
window->Preferences->Java->Editor->Content Assistauto activaction -> Enable auto activation -> Auto Activation triggers for java “.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW...
2019-04-09 18:15:22
6002
原创 javaHTTP
文章目录反射XMLhtml-formHTTP协议requestresponsewebserver反射 //得到class类 //1. Class re = reflection.class; //2. re = new reflection().getClass(); //3. re=Class.forName("WebServer.reflection"); /...
2019-03-26 00:21:19
795
原创 javaIO
文章目录File编码,解码字节流字符流文件操作文件拷贝节点流对接工具FileUtils缓冲流字节缓冲流字符缓冲流数据流基本数据类型引用数据类型打印流文件分割CommonsIO#IO介绍对于数据的输入/输出以流方式进行一切以程序为中心程序到文件 输出流文件到程序 输入流流向:输入流,输出流功能:节点流,处理流节点流直接从数据源或目的地读写数据,位于IO操作第一线处理流...
2019-03-26 00:20:16
149
原创 java网络编程
文章目录底层概念地址端口号资源定位类InetAddressInetSocketAddressURIURLUDPTCPQQ底层概念将不同区域的计算机连接在一起局域网,城域网,广域网,互联网地址IP地址确定网络上的一个绝对地址(房子地址)端口号区分计算机软件 2个字节 0-65535bit (房间号)在同一个协议下,端口号不能重复1024以下的端口不能使用,80 http,21 f...
2019-03-26 00:19:26
199
原创 java多线程
文章目录多线程介绍创建线程继承Thread实现Runnable接口lambda优先级守护线程同步项目快乐影院CopyOnWriteArrayList死锁管程法信号灯法定时调度quartzvolitale可重入锁多线程介绍进程线程根本区别作为资源分配的单位调度和执行的单位开销每个进程都有独立的代码和数据空间(进程上下文),进程间的切换会有较大的开销线程可以看成...
2019-03-26 00:18:13
171
原创 java集合
JAVA文章目录JAVA版本集合ArrayListadd(E)remove(int index)LinkedListadd(E)add(int index,E element)remove(int index)get(index)addHashMaphashput(k,v)entrySetkeySetHashtablehashput(K,V)HashSetadd(E)iterator()Tree...
2019-03-26 00:17:09
147
原创 gets() 实战
gets:gets是用来输入一行字符串的,以“\n”识别输入结束,puts对应一行字符串输出。用法char str[100];gets(str);puts(str);实战采用c++编译器提交出现error: ‘gets’ was not declared in this scope gets(str);原因分析:gets函数是C语言中stdio库中内容,语...
2019-02-13 16:01:05
7153
2
原创 freopen无法读取问题
练习PAT时采用freopen编程 输出文件内容不正确 freopen("E:/Dev-Cpp/PAT/basic/1032/1032in.txt","r",stdin); freopen("E:/Dev-Cpp/PAT/basic/1032/1032out.txt","w",stdout);刚开始以为是代码问题 手动终端输入 输出无问题修了半天bug竟是文件...
2019-02-13 14:45:50
3845
1
原创 PAT 1119.Pre- and Post-order Traversals(30 分)
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences, or preorder and inorder ...
2018-09-05 12:23:59
224
原创 PAT 1120.Friend Numbers(20 分)
Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers since 1+2+3 = 5+1 = 6, and 6 is their ...
2018-09-05 12:21:08
129
原创 PAT 1121.Damn Single(25 分)
"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input Specification:Each inpu...
2018-09-05 12:19:11
136
原创 PAT 1122.Hamiltonian Cycle(25 分
The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle".In this problem, you are supposed to tell if a given cycle ...
2018-09-05 12:16:42
127
原创 PAT 1123.Is It a Complete AVL Tree(30 分
An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is...
2018-09-05 12:06:35
96
原创 PAT 1124.Raffle for Weibo Followers(20 分)
John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from every N followers who forwarded his post, and give...
2018-09-05 12:05:14
104
原创 PAT 1125.Chain the Ropes(25 分)
Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one piece, as shown by the figure. The resulting chai...
2018-09-05 12:02:41
160
原创 PAT 1126.Eulerian Path(25 分)
In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which starts and ends on the same vertex. They were firs...
2018-09-05 12:01:25
130
原创 PAT 1132.Cut Integer(20 分)
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B = 334. It is interesting...
2018-09-05 11:59:26
126
原创 PAT 1107.Social Clusters(30 分)
When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A social cluster is a set of people who have some of thei...
2018-09-05 11:57:56
126
原创 PAT 1114.Family Property(25 分)
This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under his/her own name, we need to know the size of each f...
2018-09-04 13:00:54
135
原创 PAT 1127.ZigZagging on a Tree(30 分)
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple stand...
2018-09-04 12:47:28
337
原创 PAT 1112.Stucked Keyboard(20 分)
On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times.Now given a result...
2018-09-04 12:44:47
149
原创 PAT 1128.N Queens Puzzle(20 分)
The "eight queens puzzle" is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, ...
2018-09-03 15:45:54
120
原创 PAT 1129.Recommendation System(25 分)
Recommendation system predicts the preference that a user would give to an item. Now you are asked to program a very simple recommendation system that rates the user's preference by the number of time...
2018-09-03 15:44:00
285
原创 PAT 1133.Splitting A Linked List(25 分
Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all the values in [0, K] appear before all those grea...
2018-09-03 15:40:09
125
原创 PAT 1134.Vertex Cover(25 分)
A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with several vertex sets, you are supposed to tell if e...
2018-09-03 15:31:10
107
原创 PAT 1135.Is It A Red-Black Tree(30 分)
There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties:(1) Every node is either red or black. (2) The root is black. (3) Every...
2018-09-03 15:22:49
404
原创 PAT 1136.A Delayed Palindrome(20 分)回文
Consider a positive integer N written in standard notation with k+1 digits ai as ak⋯a1a0 with 0≤ai<10 for all i and ak>0. Then N is palindromic if and only if ai=ak−i for...
2018-09-03 15:17:17
114
原创 PAT 1131.Subway Map(30 分)
In the big cities, the subway systems always look so complex to the visitors. To give you some sense, the following figure shows the map of Beijing subway. Now you are supposed to help people with you...
2018-09-03 15:05:23
281
原创 PAT 1130.Infix Expression(25 分)中缀表达式
Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the operators.Input Specification:Each input file contai...
2018-09-03 14:59:58
233
原创 PAT 1118.Birds in Forest(25 分)并查集
Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maxi...
2018-09-03 14:39:15
124
原创 PAT 1137.Final Grading(25 分)
For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no less than 200 points from...
2018-09-03 14:29:03
96
原创 PAT 1138.Postorder Traversal(25 分)
Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to output the first number of the postorder traversal se...
2018-09-02 17:15:41
321
原创 PAT 1139.First Contact(30 分)
Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a girl B, he would usually not contact her directly i...
2018-09-02 17:11:29
266
原创 PAT 1140.Look-and-say Sequence(20 分)
Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...where D is in [0, 9] except 1. The (n+1)st number is a kind of description of the nth n...
2018-09-02 17:04:11
148
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人