自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 2021版IDEA创建web工程流程

2021版IDEA创建web工程流程

2022-09-16 11:07:27 189 1

原创 HttpServlet推送数据

public static String portalPushMessage(String url,Info info) throws ServletException, IOException { CloseableHttpClient httpClient = HttpClientBuilder.create().build(); HttpPost posturl = new HttpPost(url); String jsonSting = JSON.toJSONStrin.

2020-11-27 14:50:30 162

原创 phpStudy拒绝远程访问

情景: 程序报错:message from server: "Host 'DESKTOP-QMB6E0E' is not allowed to connect to this MySQL解决方法: 1. 进入到phpStudy界面--->其他选项菜单 2. 选择mysql工具 --->MySql命令行 3. 执行 grant all ...

2019-09-05 10:42:49 1281

原创 接收文件转存到本地

public class WordChange { public static boolean GenerateImage(String imgStr, String savedImagePath) { // 文件字节数组字符串数据为空 if (imgStr == null) { return false; } BASE64Decoder deco...

2019-08-29 10:53:19 252

原创 截取标签中的内容

public class countwords { public static void main(String[] args) { String con=""; List<Integer> list=new ArrayList<>(); List<Integer> list1=new ArrayList<>(); ...

2019-08-29 09:12:55 399

原创 json前台传递乱码解决

@ResponseBody@RequestMapping(value="/getComm",produces = "text/plain;charset=utf-8")当返回值为json类型时,为 produces = "application/json; charset=utf-8"当返回值为String类型时,为 produces = "text/plain;char...

2019-08-21 14:08:21 401

原创 按行读取文件

按行读取文件(不乱码)1.第一种方式public class writetest { public static void main(String[] args) { List<String> list=new ArrayList<>(); File filepath = new File("f://write/test.txt"); ...

2019-08-19 15:41:42 283

原创 XmlUtil:XML和实体类的相关转化工具

import javax.xml.bind.JAXBContext;import javax.xml.bind.JAXBException;import javax.xml.bind.Marshaller;import javax.xml.bind.Unmarshaller;import java.io.*;public class XMLUtil { /** * 将对象直...

2019-08-16 17:01:07 1072

原创 通过key查找指定文件夹中的文件

1.以下为实现的工具类package util;import java.io.File;import java.io.FileFilter;import java.util.ArrayList;import java.util.List;public class TextSearchFile { public static List<File> searchFi...

2019-08-14 14:58:55 247

原创 File转byte[]

1.将File文件转为byte[]public class FileChange { public static byte[] File2byte(File tradeFile){ byte[] buffer = null; try { FileInputStream fis = new FileInputStream(tradeFile); ...

2019-08-14 14:55:37 2316

原创 Base64加密解密相关内容

1. 将String类型的字符串进行Base64加密、解密的工具类:package util;import sun.misc.BASE64Decoder;import sun.misc.BASE64Encoder;import java.io.UnsupportedEncodingException;public class BaseUtil { // 加密 pub...

2019-08-14 14:48:08 794

原创 List与Array互相转化

List转Array:ArrayList<String> list=new ArrayList<String>();String[] strings = new String[list.size()];list.toArray(strings);Array转list:String[] s = {"a","b","c"};List list = java...

2019-08-12 09:51:12 222

转载 java支付宝支付

https://blog.csdn.net/zhh1072773034/article/details/79804624

2019-05-10 18:19:32 231

原创 c:if 写法

<c:if test="${cart.imgtype =='musicroom'}"> <strong style="font-size: 18px;line-height: 200px">音乐教室</strong></c:if>

2019-05-07 13:21:04 1153

原创 js为img动态赋值

情景:当图片存储在数据库中,上传后立即回显var url=path+"/user/img?photopath="+photopath;document.getElementById('photo').src=url;js原生方法:document.getElementById("photo").src = "xxxx.jpg";Jquery方法:$("#photo").attr("s...

2019-04-29 19:21:46 7846

转载 idea快捷键

https://www.cnblogs.com/caozengling/p/5668101.html

2019-04-04 16:36:06 139

原创 自定义格式上传文件

js部分: $('#btn-up').click(function (){ $('#checkfile-upload').click(); }); $('#checkfile-upload').on('change',function(){ var checkPlanId=$("#checkPlanI...

2019-04-04 16:03:02 389

原创 使用Map 达到使用需要数据进行sql查询

Map map = new HashMap();String attachId=request.getParameter("attachId");String specialId=specialTask.getId();map.put("attachId",attachId);map.put("specialId",specialId);specialTaskService.myup...

2019-03-22 11:04:47 1593

转载 导出Excel表格

https://blog.csdn.net/l1028386804/article/details/79659605

2019-03-22 09:39:48 96

原创 电话校验问题---失败不提交

<html><head> <title>Title</title> <script type="text/javascript"> function checkTel(){ var mytel=document.getElementById('telphone'); ...

2019-03-18 15:34:35 296

转载 将eclipse项目导入idea

idea导入maven文件:http://yayihouse.com/yayishuwu/chapter/1826idea与eclipse相互导入:https://blog.csdn.net/minkeyto/article/details/81489597将eclipse文件导入到idea:https://www.cnblogs.com/lindp/...

2019-03-18 09:28:34 148

原创 使 select 文字居中

select {text-align: center;text-align-last: center;}

2019-03-14 10:55:49 115

原创 有关form:select的内容

常用格式:<form:select path="dangerRelationTypeCode" class="input-medium required"> <form:options items="${fns:getDictList('hiddenTroubleRelationship')}" itemLabel="label" item...

2019-03-11 15:54:08 5251 2

原创 妙用 redirect

作用:从一个@RequestMapping 中存储的数据传到另一个@RequestMapping 中使用手段:RedirectAttributes和@ModelAttribute一个栗子:@RequiresPermissions("quota:quotaSystem:edit")@RequestMapping(value = "delete")public String d...

2019-03-08 17:01:12 298

原创 JS中的DOM与BOM

js:基于对象且事件的脚本语言    对象: window:控制整个浏览器窗口          document:文档对象,控制网页主体中所有内容          数组对象:网页中的一组元素          历史对象:          自定义对象:object 人类 学生类                      this:本类型对象、当前对象        ...

2018-12-12 10:01:30 207

转载 mysql中如何不重复插入满足某些条件的重复的记录的问题

在项目中主要是用到了 在多个线程中需要循环的将数据插入,而且根据指定的几个字段是可以唯一确定这条记录的,这个时候如果不适用去重的逻辑就会产生很多很多的杂数据,但是如果是在代码层级的判重,则需要每次插入的时候去查询一下,这样效率不好。因此就到网上找相关的,当然这个还是一个比较有经验的人告诉的一个思路。下面就来看看mysql天生支持的几种去重的操作,1.insert ignore into当插...

2018-10-29 16:06:14 693

原创 解决下载scarpy问题

解决问题: You are using pip version 9.0.1, however version 9.0.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. ...

2018-10-29 16:04:08 374

原创 Python---列表类似方法区别

insert,append,extend区别append: 在列表末尾追加一个数据项, 如果追加一个新的列表,即以一个列表包含一个列表的形式继续存在 如果追加一个字符串,字符串不改变形式 >>> students = ['Cleese' , 'Palin' , 'Jones' , 'Idle'] &g...

2018-08-17 08:56:33 218

原创 Linux--设置静态IP

2018-08-10 14:23:51 103

原创 Linux--完成IP地址与机器名的映射

2018-08-10 14:04:41 1526

原创 python之指定排序

# 获取列表的第二个元素def takeSecond(elem): return elem[1]# 列表random = [(2, 2), (3, 4), (4, 1), (1, 3)]# 指定第二个元素排序random.sort(key=takeSecond)# 输出类别print ('排序列表:', random)...

2018-05-29 15:27:01 2388

原创 初学python之绘制蟒蛇动图

import turtledef drawSnake(rad,angle,len,neckrad): for i in range(len): #循环 turtle.circle(rad,angle) #圆的半径以及弧度 turtle.circle(-rad,angle) turtle.circle...

2018-05-23 14:31:00 3064 1

原创 初学python之月份简写

要求:输入月份代表的数字,输出月份的简写。month="JanFebMarAprMayJunJulAugSepOctNovDec" #将所有月份简写存到month中n=input("请输入月份代表的数字:") pos=(int(n)-1)*3...

2018-05-23 13:59:05 18785 1

空空如也

空空如也

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

TA关注的人

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