- 博客(25)
- 收藏
- 关注
原创 Linux系统部署JavaWeb项目(从环境搭建到部署)
一、部署准备jdk1.8,tomcat8.5,mysql5.1,可运行的javaweb项目,装有linux系统的虚拟机(centos7)二、安装jdk1.8下载jdk1.8获取linux系统root权限若不是以root用户登录,需要通过命令获取root权限(回车后需要输入root用户的密码)su root在usr路径下创建java文件夹mkdir java...
2019-04-04 20:23:51
5221
1
原创 kkpager分页+多条件筛选(案例)
导入kkpager的js文件及css文件下载地址前端页面<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%><%@...
2019-03-27 17:19:01
408
原创 Mybatis相关笔记(待补充)
封装结果集 <resultMap id="BaseResultMap" type="com.fs.model.system.ExamQuestion"> <id column="title_id" jdbcType="INTEGER" property="titleId" /> <result column="title_name" jdbcType="VA...
2019-03-27 17:00:18
250
原创 excel表格操作(POI)
pom.xml <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.1</version> </dependency>ExcelUtilimpor...
2019-03-27 16:53:06
202
原创 分页(pagehelper)
pom.xml <!-- 分页 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.8</version> &l...
2019-03-27 16:42:37
344
原创 验证码实现
前端<img src="code" alt="" width="100" height="32" "this.src=this.src+'?'">后端import java.awt.Color;import java.awt.Font;import java.awt.Graphics2D;import java.awt.image.BufferedImage;i...
2019-03-27 15:59:58
193
原创 文件上传下载
spring.xml配置 <!-- 上传下载 --> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"><!--配置上传文件 --> <property name="defaultEnco...
2019-03-27 14:27:44
255
原创 Ajax跨域问题
错误信息XMLHttpRequest cannot load “url” 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.分析Access control allow ...
2019-03-26 16:20:22
143
原创 JavaWeb中的监听器、过滤器、拦截器
监听器Listenerweb监听器是Servlet中一种特殊的类,能监听web中的特定时间,比如ServletContext,HttpSession,ServletRequest的创建和销毁;变量的创建、销毁和修改等。可以在某些动作前后增加处理,实现监控。监听事件自身的创建和销毁ServletContext监控:对应监控application内置对象的创建和销毁。当web容器开启时,执行...
2019-03-26 15:59:13
780
原创 SSM框架搭建(配置文件)
pom文件(引入依赖包) <dependencies> <!-- 作为一个基本的web项目,Servlet API必不可少 --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifac...
2019-03-23 15:07:49
450
原创 JavaWeb项目部署到阿里云服务器(Windows服务器)
为了更熟悉JavaWeb开发的整个流程,所以租了个阿里云服务器来玩玩,之前觉得部署项目到服务器会很难,其实接触了之后发现其实很简单,平时练习中,就是自己电脑作为服务器,所以我们只需在阿里云服务器上装上和本机一样的环境(JDK,Mysql,Tomcat),然后将项目打包放上去就好,接下来将整个流程展示一遍,从购买阿里云服务器开始。一、购买阿里云服务器进入 阿里云官网,搜索云服务器。点击云...
2019-03-22 15:52:59
7521
3
原创 Sightseeing trip(求最小环,记录路径)
Sightseeing trip Time Limit: 1000MS Memory Limit: 65536K Special Judge DescriptionThere is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many
2015-12-09 17:00:39
955
原创 Sightseeing(最短路与次短路之和)
Sightseeing Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription Tour operator Your Personal Holiday organises guided bus trips across the Benelux. Every day the bus m
2015-11-29 13:00:48
746
原创 Buy or Build
H - Buy or Build Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluWorld Wide Networks (WWN) is a leading company that operates large telecommunication networks.WWN would like to setu
2015-11-26 16:22:07
637
原创 Slim Span(生成树苗条度)
Slim Span Time Limit: 5000MS Memory Limit: 65536K DescriptionGiven an undirected weighted graph G, you should find one of spanning trees specified as follows.The graph G is an ordered pair (V, E), wh
2015-11-23 17:06:25
727
原创 THE MATRIX PROBLEM(差分约束)
C - THE MATRIX PROBLEM Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescriptionYou have been given a matrix C N*M, each element E of C N*M is positive and no more than 1000
2015-11-23 14:56:46
612
原创 Fibonacci Tree
F - Fibonacci Tree Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription Coach Pang is interested in Fibonacci numbers while Uncle Yang wants him to do some research on
2015-11-23 12:52:07
402
原创 畅通工程(最小生成树模板题)
E - 还是畅通工程 Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为
2015-11-23 12:40:25
400
原创 Constructing Roads(最小生成树)
D - Constructing Roads Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such th
2015-11-23 12:36:27
415
原创 Intervals(差分约束)
B - Intervals Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescriptionYou are given n closed, integer intervals [ai, bi] and n integers c1, …, cn. Write a program that:
2015-11-23 12:23:15
474
原创 最小环(floyd)
A - find the mincost route Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription杭州有N个景区,景区之间有一些双向的路来连接,现在8600想找一条旅游路线,这个路线从A点出发并且最后回到A点,假设经过的路线为V1,V2,….VK,V1,那么必须满足K>2,就
2015-11-22 20:43:43
497
原创 昂贵的聘礼
F - 昂贵的聘礼 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:”嗯,如果你能
2015-11-10 23:54:51
340
原创 XYZZY(spfa判环)
B - XYZZY Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description It has recently been discovered how to run open-source software on the Y-Crate gaming device. A number
2015-11-10 23:17:44
905
原创 简单最短路
A - 最短路 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?
2015-11-10 22:31:35
441
原创 Max Sum(简单的最大子序列和的问题)
A - Max SumTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate t
2015-09-17 22:14:31
1040
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人