自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (11)
  • 收藏
  • 关注

原创 java生成tar包示例,方法也可改为生成tar的byte[]

需下载jar包:commons-compress-1.20.jar。2.此方法可以改为返回tar的byte[];直接运行main方法就可以生成如图结果。3.注意文件名需要.tar.gz。

2022-10-31 15:31:17 472 1

原创 使用HSSFWorkbook导出excel

jsp代码:<input id="exportwork" class="btn btn-primary" type="button" value="导出"/>js代码:自己写点击事件跳转到后台方法即可,我这是用form表单进行提交跳转的$("#exportwork").bind("click",function(){ $("#searchForm").attr("acti...

2019-10-12 11:10:20 307

原创 maven导入本地jar包

pom.xml中的依赖为<dependency> <groupId>com.h3c</groupId> <artifactId></artifactId> <version>0.0.6</version></dependency>注意jar放的位置,根据实际位置进行修改...

2019-10-12 10:47:02 127

原创 将搜索出来的内容根据搜索的文字高亮显示

h3cKnowledge.title是完整的字符串h3cKnowledge.title2是需要高亮显示的例如:h3cKnowledge.title 的值是:空标签1111xh3cKnowledge.title2 的值是:标签 (需要想办法从后台传到前台)则显示如下图:${fn:replace(h3cKnowledge.title, h3cKnowledge.title2, "&lt...

2019-10-12 10:18:12 885

原创 jquery手机端页面下拉刷新,上划加载更多

手机页面下拉刷新,上划加载更多,IOS不能下拉的问题解决—转圈的是需要引用样式,代码删除了上划加载时的样子<script type="text/javascript">var u = navigator.userAgent;var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;...

2019-10-10 16:52:18 865

原创 根据id添加样式,去除样式

示例div<div id="scrolldiv" class="oldclass">ssssssss</div>根据id添加单个样式:$("#scrolldiv").css(“overflow”,“scroll”);去除单个样式:$("#scrolldiv").css(“overflow”,"");去除样式 :$("#scrolldiv").removeCl...

2019-10-10 16:06:18 1824

原创 PL/SQL无法根据中文查询

PL/SQL无法根据中文查询是在系统环境变量中添加NLS_CHARACTERSET = AL32UTF8NLS_LANG = AMERICAN_AMERICA.AL32UTF8

2019-10-10 15:54:49 131

原创 清除字符串中style中的样式

ans = ans.replaceAll("style=\\s*\".*?\"", "");//清除style中的样式

2019-10-10 11:50:23 796

原创 正则表达式清除字符串中的标签,保留<p>标签及<br>标签

ans=ans.replaceAll("</?[^/?(br)|(p)][^><]*>","");//保留p标签及<br>标签

2019-10-10 11:48:19 1440

原创 判断某个div是否在屏幕区域内(手机下拉刷新有用)

var a = $("#slideDown").offset().top - $(document).scrollTop() - $(window).height(); //获取div距离顶部的距离 ?— ?滚动的距离 ?— ?浏览器的高度var b =?$("#slideDown").height() +?$(window).height();// 获取div高度 ?+ ?浏览器高度cons...

2019-10-10 11:44:50 289

原创 根据div的id屏蔽右键编辑功能

将myTypicalReport换成自己需要屏蔽的id就可以//屏蔽右键编辑$("#myTypicalReport").bind("contextmenu", function (e) { return false;});*/

2019-10-10 11:41:16 176

原创 js中的点击事件传多个参数

两种写法,引号不一样,需要反斜杠"<a href='javascript:void(0);' οnclick='gotoconfig(\""+GROUP_TYPE+"\",\"" + CONFIG_ID +"\")' type='"+GROUP_TYPE+"' config-id='"+CONFIG_ID+"' class='showConfig'>"+ CONFIG_NAME + ...

2019-10-10 11:37:15 1213

原创 获取checkbox选中的值

jsp中循环checkbox<c:forEach items="${dialogList}" var="dialog"> <div class="checkdialog"><input type="checkbox" name="item"value="${dialog.dialogKey}">${dialog.dialogName}</div>...

2019-10-10 11:29:43 330

爱心html动态的爱心啊啊啊

爱心html

2022-11-08

base64跳转商城aaa.zip

aaa.zip

2021-11-18

HttpClientCallWSUtil.java

http连接service

2021-11-09

base64加密解密.zip

base64加密解密.zip

2021-11-05

WorkWeixinApiUtils.java

连接企业微信接口,获取token ,获取当前用户信息

2021-03-22

testspringmvcproject.rar

springmvc有固定顶部导航栏的页面 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ include file="/WEB-INF/commIncludePage/common.jsp"%> <html> <head> <meta http-equiv=

2020-09-15

testspringmvcproject.rar

springmvc里面有微信小程序调用接口 public ModelAndView view(HttpServletRequest request){ // String path = request.getParameter("path") + ""; String path = "pages/index"; ModelAndView mav = new ModelAndView(); mav.setViewName(path); return mav; }

2020-08-26

glyphicons-halflings-regular.zip

bootstrap 图标显示需要的5个字体文件glyphicons-halflings-regular @font-face { font-family: 'Glyphicons Halflings'; src: url('../common/css/fonts/glyphicons-halflings-regular.eot'); src: url('../common/css/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../common/css/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../common/css/fonts/glyphicons-halflings-regular.woff') format('woff'), url('../common/css/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../common/css/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

2020-04-28

Logincontroller.java

package com.springmvc.controller; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import com.mchange.v2.c3p0.ComboPooledDataSource; @Controller @RequestMapping(value = "ViewController") class ViewController { //@Resource //private ComboPooledDataSource comboPooledDataSource; //@Resource //private JdbcTemplate jdbcTemplate; @RequestMapping("/view") public ModelAndView view(HttpServletRequest request){ // String path = request.getParameter("path") + ""; System.out.println("3333"); String path = "pages/index"; ModelAndView mav = new ModelAndView(); mav.setViewName(path); return mav; } @RequestMapping(value = "/login") public String login(Model model) { System.out.println("11111"); return "pages/login"; } @RequestMapping(value = "/test") public String test(Model model) { System.out.println("222"); String sql = "select * from TYPICAL_CONFIG_report"; return "pages/test"; } }

2020-03-31

轮播jar包

&lt;&#37;@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> &lt;&#37;@ include file="/WEB-INF/commIncludePage/common.jsp"%> &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;Insert title here&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/css/login/login.css?version=20200311" /&gt; &lt;/head&gt; &lt;body&gt; <div class="login"> <div class="login_left"> <div class="banner"> <ul> <li><img src = "${pageContext.request.contextPath}/resources/img/login/Desert."></li> <li> <img src = "${pageContext.request.contextPath}/resources/img/login/Whitebackground."> <div class = "notice_div"> <div class = "notice"><h2>通知</h2></div> <div class = "notice_text"><p>aaaaaaaaaaaaassssssssss</p></div> </div> </li> </ul> </div> </div> <div class="login_right"> <label class = "login_right_label1">账号&lt;input name = "userName" type="text"/&gt;</label> <label class = "login_right_label2">密码&lt;input name = "password" type="text"/&gt;</label> </div> </div> &lt;/body&gt; &lt;/html&gt; [removed][removed] [removed][removed] [removed] $(document).ready(function() { $('.banner').terseBanner(); }); [removed]

2020-03-31

国密算法SM2

包含了jar包

2017-05-18

空空如也

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

TA关注的人

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