- 博客(94)
- 资源 (2)
- 收藏
- 关注
原创 Swagger-UI的使用
一、添加依赖在pom.xml文件中添加swagger相关依赖<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version></dependency><dependency> &l...
2021-08-01 14:12:35
724
原创 Win10中JDK1.8环境变量配置
一、系统属性二、环境变量三、环境变量配置1、新建->变量名"JAVA_HOME",变量值"D:\Software\Java\jdk1.8.0_121"(即JDK的安装路径)2、编辑->变量名"Path",在原变量值的最后面加上“%JAVA_HOME%\bin和%JAVA_HOME%\jre\bin”3、新建->变量名“CLASSPATH”,变量值“.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%..
2021-03-31 14:06:47
213
原创 SpringBoot整合Pagehelper分页插件
一、在pom.xml文件中引入Pagehelper分页插件<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.3.0</version></dependency>二、配置分页插件pagehel
2020-12-21 16:51:36
455
原创 Node.js安装及环境配置
目录一、node.js下载安装1、官网下载2、开始安装3、验证是否安装成功二、环境配置1、创建npm模块安装目录2、配置环境变量三、测试一、node.js下载安装1、官网下载下载链接:https://nodejs.org/en/download/2、开始安装打开安装包后,一直next即可。当然,建议还是修改一下安装位置,node.js默认安装位置为C:\Program Files3、验证是否安装成功打开DOS命令窗口,输入以下命令nod.
2020-11-19 08:36:56
303
原创 idea+SSM配置
一、pom.xml<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <
2020-09-16 20:15:39
146
原创 Eclipse安装Hibernate插件
一、获取插件链接进入JBoss Tools官网:https://tools.jboss.org/downloads/二、安装插件进入eclipse,点击Help,选择Install New Software选择需要用到的插件三、验证安装成功重启eclipse后,Windows->Open Perspective->Other,如果安装完成,可以看到Hibernate...
2020-05-27 10:21:28
234
原创 Eclipse安装STS
1、打开Eclipse 菜单栏 Help --> Install New Software…2、使用这个链接 ,填写到Locationhttp://dist.springsource.com/release/TOOLS/update/e4.X/ 你需要插入你的 Eclipse 的版本匹配在“x” 例如我的 Eclipse(4.15.0) ,安装...
2020-04-24 20:19:58
553
原创 Maven解决jdk版本过低问题解决方法
一、在项目文件下的 pom.xml文件下添加一下代码(jdk11为例)<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
2020-04-24 19:59:50
1435
原创 Eclipse创建maven工程时xml下Namespaces显示不全的解决办法
1、问题描述如图,有时候编写springMVC相关的xml文件时,使用namepace中显示不全或者完全不显示2、解决方案Window ——> Preferences——> Spring ——>NameSpaces ——> 如下操作:...
2020-03-18 15:28:45
173
原创 Android Studio的下载、安装与配置
一、下载Android Studio版本:3.5.3下载地址:https://developer.android.google.cn/studio二、安装Android Studio点击运行下载完成的安装程序,出现安装的欢迎页面欢迎页面,直接点击“Next”选择安装组件这一步将“Android Virtual Device”勾选上,这是为了创建Android...
2020-02-26 08:28:46
1497
2
原创 MySQL8.0.18 卸载、安装和配置教程
一、卸载1>停止MySQL服务2>将MySQL安装目录下的MySQL文件夹删除3>快捷键win+r输入regedit进入注册表删除HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL文件夹 删除HKEY_LOCAL_MACHINE\SYSTEM\Cont...
2019-10-23 16:59:40
4017
1
原创 Tomcat9出现乱码
打开conf文件夹下的文件,找到如图这一行,需要修改这一行,将这一行改为:java.util.logging.ConsoleHandler.encoding = GBK如图所示:
2019-10-18 19:17:55
450
原创 Tomcat9下载、安装、配置环境变量
1、Tomcat下载教程进入官网下载Tomcat,官网地址-点击进入http://tomcat.apache.org/点击Tomcat9对应着操作系统位数进行下载2、Tomcat安装教程解压压缩包,放在D盘3、Tomcat配置教程点击高级系统设置点击环境变量在系统变量栏中选择新建CATALINA_HOME变量值就是你解压后的路径...
2019-10-18 19:12:02
345
原创 java连接MySQL数据库准备工作
使用JDBC需要在工程中导入对应的jar包。数据库与JDBC包的对应关系可以参考各种数据库对应的jar包、驱动类名和URL格式。在Eclipse下的导入方法: 在工程的图标上右击,选择”Properties”,在”Java Bulid Path”中选择”Add External JARs…”,选择下载并解压后获得的jar包。...
2019-09-27 19:24:45
250
1
原创 大小接近的点对(主席树)
题目描述一天,Chika 对大小接近的点对产生了兴趣,她想搞明白这个问题的树上版本,你能帮助她吗?Chika 会给 你一棵有根树,这棵树有 n 个结点,被编号为 1 n,1 号结点是根。每个点有一个权值,i 号结点的权值为 a[i]。如果 u 是 v 的祖先结点,并且 abs(a[u]−a[v]) ≤K,那么 (u,v) 被称作一个“** 大小接近的点对 **”。 对于树上的每个结点 i,你都...
2019-04-16 10:11:45
245
原创 Childhood dream
题目描述你童年时期就有一个梦想,想要加入 ACM(Association of Calculation and Magic),今天,这个机会终于 来了。但是 ACM 只想要哪些天赋异禀的人, 比如像 tourist,他们给了你一道题来检测你是否足够机智。猜一个长度为 m 数字串,总共有 n 个提示串,解释如下:8640 0A2BA 前面的数字说明与答案相比,有多少个位置...
2019-04-15 09:35:03
368
原创 矩阵快速幂
垒骰子赌圣atm晚年迷恋上了垒骰子,就是把骰子一个垒在另一个上边,不能歪歪扭扭,要垒成方柱体。经过长期观察,atm 发现了稳定骰子的奥秘:有些数字的面贴着会互相排斥!我们先来规范一下骰子:1 的对面是 4,2 的对面是 5,3 的对面是 6。假设有 m 组互斥现象,每组中的那两个数字的面紧贴在一起,骰子就不能稳定的垒起来。atm想计算一下有多少种不同的可能的垒骰子方式。两种垒骰子方式相同,当...
2019-03-20 10:54:13
111
原创 Just a Hook
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length. Now Pud...
2018-12-09 09:02:03
240
原创 I Hate It
很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0<N<=200000,0<M<5...
2018-12-09 08:56:57
138
原创 统计难题
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提问,每行一个提问,每个提问都是一个字符串. 注...
2018-09-02 20:38:28
250
原创 Stars Drawing (Hard Edition)
A star is a figure of the following type: an asterisk character '*' in the center of the figure and four rays (to the left, right, top, bottom) of the same positive length. The size of a star is the l...
2018-09-02 20:37:31
314
原创 Farey Sequence
The Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 < a < b <= n and gcd(a,b) = 1 arranged in increasing order. The first few are F2 ...
2018-09-02 20:36:21
175
原创 Large Division
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if there exists an integer c such that a = b * c....
2018-09-02 20:34:16
161
原创 Goldbach`s Conjecture
Goldbach's conjecture is one of the oldest unsolved problems in number theory and in all of mathematics. It states:Every even integer, greater than 2, can be expressed as the sum of two primes [1]....
2018-09-02 20:32:24
145
原创 Leading and Trailing
You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk.InputInput starts with an integer T (≤ 1000), denoting the num...
2018-09-02 20:31:04
168
原创 Robot Rapping Results Report
While Farmer John rebuilds his farm in an unfamiliar portion of Bovinia, Bessie is out trying some alternative jobs. In her new gig as a reporter, Bessie needs to know about programming competition re...
2018-08-26 20:32:11
109
原创 Super Jumping! Jumping! Jumping!
Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The game ...
2018-08-26 13:49:47
115
原创 超级密码
Ignatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息: 密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0<=N<=5000)的正整数倍(如果存在多个满足条件的数,那么最小的那个就是密码),如果这样的密码存在,那么当你输入它以后门将打开,如果不存在这样的密码....
2018-08-25 10:11:50
1199
原创 Anniversary party
There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor relation forms a tr...
2018-08-25 10:10:59
207
原创 S-Trees
A Strange Tree (S-tree) over the variable set Xn = {x1, x2, . . . , xn} is a binary tree representing a Boolean function f : {0, 1} n → {0, 1}. Each path of the S-tree begins at the root node and cons...
2018-08-25 10:10:04
241
原创 度度熊学队列
度度熊正在学习双端队列,他对其翻转和合并产生了很大的兴趣。 初始时有 NN 个空的双端队列(编号为 11 到 NN ),你要支持度度熊的 QQ 次操作。 ①11 uu ww valval 在编号为 uu 的队列里加入一个权值为 valval 的元素。(w=0w=0 表示加在最前面,w=1w=1 表示加在最后面)。 ②22 uu ww 询问编号为 uu 的队列里的某个元素并删除它。( w=0w...
2018-08-25 10:05:28
306
原创 The Falling Leaves
Each year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves accumulating under the trees. If the same thing ha...
2018-08-25 10:04:09
181
原创 Tree
You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum o...
2018-08-25 10:01:17
116
原创 Not so Mobile
Before being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. This kind of mobile is usually found hanging over cradles of sma...
2018-08-25 09:58:48
118
原创 The order of a Tree
As we know,the shape of a binary search tree is greatly related to the order of keys we insert. To be precisely: 1. insert a key k to a empty tree, then the tree become a tree with only one node; ...
2018-08-25 09:54:52
172
原创 Trees on the level
Trees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinking Machines' CM-5 are based on fat trees. Quad- and octal-trees are fundamental to...
2018-08-25 09:54:01
203
原创 二叉搜索树
判断两序列是否为同一二叉搜索树序列Input开始一个数n,(1<=n<=20) 表示有n个需要判断,n= 0 的时候输入结束。 接下去一行是一个序列,序列长度小于10,包含(0~9)的数字,没有重复数字,根据这个序列可以构造出一颗二叉搜索树。 接下去的n行有n个序列,每个序列格式跟第一个序列一样,请判断这两个序列是否能组成同一颗二叉搜索树。Output如果序列相同则...
2018-08-25 09:52:51
109
原创 Military Problem
In this problem you will have to help Berland army with organizing their command delivery system.There are nn officers in Berland army. The first officer is the commander of the army, and he does no...
2018-08-19 20:00:39
149
原创 Tree Recovery
Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes. This is an example of one of her creati...
2018-08-19 19:27:28
136
原创 Elven Postman
Elves are very peculiar creatures. As we all know, they can live for a very long time and their magical prowess are not something to be taken lightly. Also, they live on trees. However, there is somet...
2018-08-19 19:11:30
115
基于SSM的网上点餐平台的设计与实现.zip
2020-06-27
基于Android的英语单词备忘录的设计与实现.zip
2020-06-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人