摘要: 使用ftp需要引入两个jar包(commons-net、commons-fileupload) 1、添加ftp服务器配置文件 2、使用@Value 注解获取ftp上传文件的配置文件中的属性值 3、ftp上传下载文件工具类 4、图片上传业务层代码 5、图片上传表现层代码 5中需要的JsonUtils工 阅读全文
posted @ 2018-08-18 14:48 Code_World_Final 阅读(4203) 评论(0) 推荐(0) 编辑
摘要: 1》 解压文件(z-文件格式,x-解压,v-显示解压进度信息,f-执行):tar -zxvf 文件名 2》 重命名(非必须): mv jdk1.7.0_80 jdk1.7 3》 设置环境变量: vi /etc/profile 输入上面命令后,回车然后按 i,将光标定位到文件最后一行,在输入下面代码: #set java environment JAVA... 阅读全文
posted @ 2018-08-18 13:57 Code_World_Final 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1、引入ZTree所需要的js和css 2、前端页面代码 3、node对象 阅读全文
posted @ 2018-08-18 13:45 Code_World_Final 阅读(245) 评论(0) 推荐(0) 编辑
摘要: /*附件下载*/ @RequestMapping(value="/downFile") public void downFile(HttpServletResponse response){ try { OutputStream os = null; //获取文件名称 String filename 阅读全文
posted @ 2018-08-18 13:44 Code_World_Final 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1、因为上传文件会使用到MultipartHttpServletRequest对象,我们需要在Springmvc配置文件中配置一个解析器 2、前端jsp代码 阅读全文
posted @ 2018-08-18 13:40 Code_World_Final 阅读(3086) 评论(0) 推荐(0) 编辑
摘要: 1、引入时间插件所需要的js和css 1 <link href="<%=path %>/static/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen"> 1 <link href="<%=path %>/sta 阅读全文
posted @ 2018-08-18 13:38 Code_World_Final 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 最终效果展示: 1、登录页面JSP代码 2、登录请求后controller代码 阅读全文
posted @ 2018-08-18 13:36 Code_World_Final 阅读(6045) 评论(0) 推荐(0) 编辑
摘要: 最终效果展示: 代码展示: 1、前端登录页面代码展示 2、点击登录之后进行controller代码展示 //验证码验证思路,其实就是后台生成一个随机数保存到session中并且显示到页面,用户输入的验证码与session中保存的随机数进行忽略大小写的比较,如果相同就验证成功,否则失败。 阅读全文
posted @ 2018-08-18 13:35 Code_World_Final 阅读(11781) 评论(1) 推荐(1) 编辑