- 博客(69)
- 收藏
- 关注

原创 表单多文件上传 以及 表单信息使用注解自动映射到实体类
java代码 @RequestMapping(value = "/show")public String show(HttpServletRequest request, @RequestParam(value = "file") MultipartFile[] file, @Valid User user){ for (MultipartFile multipartFile : .
2018-09-24 18:35:08
1392

原创 使用注解实现 ajxs 传值
1.使用注解传单个参数(1).jsp代码<input type="button" value="按钮1" onclick="x1()"/>(2).script代码<script src="/jquery-3.3.1.min.js"></script> <script> function x1(){
2018-09-24 15:40:22
652

原创 ajxs 基础操作
1.ajxs post请求数字、字符串、单个值html输入姓名:scriptjava@RequestMapping(&amp;amp;amp;amp;amp;quot;/show&amp;amp;amp;amp;amp;quot;)public void show(HttpServletResponse response) throws IOException {response.getWriter().print(“11231”);}
2018-09-23 23:42:33
5031
原创 区块链分享20211111
全节点全节点有本条链上所有数据,负责数据校验及区块同步轻节点轻节点有链的部分数据,有头部信息中心节点典型的如交易所侧链跨链添加新特性互相传播机制
2021-11-11 17:07:59
10218
原创 java spi
1.Service SPI 加载classpath下所有META-INF/services/目录下的对应给定接口包路径的文件ServiceLoader<ServletContainerInitializer> serviceLoader=ServiceLoader.load(ServletContainerInitializer.class);2.spring.handlers SPI 加载classpath下可能分散在各个jar包中的META-INF/spring.handlers文件
2021-09-26 14:15:55
107
原创 java 交集、差集,并集
交集 listA.retainAll(listB) listA内容变为listA和listB都存在的对象 listB不变差集 listA.removeAll(listB) listA中存在的listB的内容去重 listB不变并集 listA.removeAll(listB); listA.addAll(listB) 为了去重,listA先取差集,然后追加全部的listB listB不变...
2021-07-10 22:41:04
126
原创 mysql 优化
1.LEFT JOIN 与 INNER JOIN建议使用 INNER JOIN 查询数据量会小一点2.分页id定位优化select * from orders_history where type=2 and id between 1000000 and 1000100 limit 100; select * from orders_history where id in (select order_id from trade_2 where goods = 'pen') limit 100
2020-12-21 18:53:45
121
原创 tom 搭建 k8s
1.安装dockeryum install docker2.安装k8syum -y install kubelet kubeadm kubectl43.k8s 网路环境搭建
2020-07-26 20:45:58
126
原创 常见面试题
1.String str=“123” 有几个对象?2.nio和io的区别?3.一条sql执行时间过长如何优化?4.Spring mvc 请求流程?5.Http和Https的区别?6.jvm
2020-06-23 20:50:21
196
1
原创 k8s 安裝
所有机器安装yum -y install epel-release所有机器关闭防火墙systemctl stop firewalldsystemctl disable firewalld查看防火墙状态firewall-cmd --statemaster 安装yum -y install etcd kubernetes-masternode 安装yum -y instal...
2019-12-20 14:10:53
154
原创 choco 使用
1.安装 choco@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://...
2019-11-29 10:45:01
945
原创 java 测试用例
private MockHttpServletRequest request;private MockHttpServletResponse response;@Beforepublic void before(){ request = new MockHttpServletRequest(); request.setCharacterEncoding("UTF-8");...
2019-09-22 18:48:59
907
原创 POJO-jpa-lombok-controller.groovy
import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.intellij.database.util.DasUtilimport java.text.SimpleDateFormatpackageName = “com.example.demo”FILES.ch...
2019-08-31 14:19:16
165
原创 POJO-jpa-lombok-ServiceImpl.groovy
import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.intellij.database.util.DasUtilimport java.text.SimpleDateFormatpackageName = "com.example.demo.service...
2019-08-31 14:18:43
135
原创 POJO-jpa-lombok-Service.groovy
import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.intellij.database.util.DasUtilimport java.text.SimpleDateFormatpackageName = "com.example.demo.service...
2019-08-31 14:18:11
157
原创 POJO-jpa-lombok-Dto.groovy
import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.intellij.database.util.DasUtilpackageName = "com.example.demo"FILES.chooseDirectoryAndSave("Choose dir...
2019-08-31 13:09:44
140
原创 POJO-jpa-lombok-Entity.groovy
import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.intellij.database.util.DasUtilpackageName = "com.example.demo;"typeMapping = [ (~/(?i)int/) ...
2019-08-30 21:12:10
266
原创 mysql 存储过程
mysql 定时器 1.show variables like 'event%'; 查询mysql 定时任务是否开启 2. SET GLOBAL event_scheduler = 1; 开启mysql 定时任务 3. SET GLOBAL event_scheduler = 0; 关闭mysql 定时任务创建mysql 定时任务(每20秒执行一次)CREATE EVENT e_...
2019-06-24 22:59:41
89
原创 android
弹窗Snackbar.make(mNavigationView,"照相", Snackbar.LENGTH_LONG).show();Toast.makeText(FloatingActionButtonActivity.this,"点击了", Toast.LENGTH_LONG).show();
2019-04-14 12:42:19
100
原创 docker-compose.yml
version: “3”services:mongo:image: mongo:latestcontainer_name: mongo_1# restart: always# command:environment:- MONGO_INITDB_ROOT_USERNAME=root- MONGO_INITDB_ROOT_PASSWORD=123456ports:- 27017...
2019-03-26 22:33:48
344
原创 httpclient
package com.example.demo;import java.io.*;import java.net.HttpURLConnection;import java.net.MalformedURLException;import java.net.URL;import java.util.UUID;public class UploadUtils { priva...
2019-03-26 13:03:56
136
原创 idea 码云提交
git pullgit pull origin mastergit pull origin master --allow-unrelated-historiesgit push -u origin master -f
2019-03-26 09:43:22
188
原创 android adb
1.adb shell2.setprop service.adb.tcp.port 55553.ifconfig4.拔掉USB5.adb connect 192.168.0.886.成功后显示 connected to 192.168.0.88:5555
2019-03-26 09:42:05
166
原创 android SQLiteOpenHelper 使用
https://www.cnblogs.com/zoro-zero/p/4504173.html
2019-03-15 21:03:59
149
原创 android SQLiteOpenHelper 使用
https://www.cnblogs.com/zoro-zero/p/4504173.html
2019-03-15 21:03:16
2449
原创 java爬虫
依赖<dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.11.3</version></dependency>java代码import j
2019-03-10 18:40:13
465
原创 docker install centos:7
yum search openjdkyum install -y java-11-openjdk.x86_64yum install -y docker
2019-03-04 17:16:29
135
原创 docker install ubuntu
安装 ubuntudocker pull ubuntu:latest启动并进入bashdocker run -it -d ubuntu:lastest /bin/bash在容器中执行bash命令docker exec -it ubuntu /bin/bashdocker run -it 47b19964fb50安装openssh-server并启动apt-get update...
2019-02-27 14:32:33
315
原创 docker搭建 hdfs
windows拉去hadoop镜像docker pull singularities/hadoop创建docker-compose.yml文件version: &amp;amp;amp;quot;2&amp;amp;amp;quot;services: namenode: image: singularities/hadoop command: start-hadoop namenode hostname: namen
2019-02-25 10:50:36
3224
3
原创 docker安装
linux安装dockeryum -y install docker-io启动dockerservice docker start
2019-02-19 13:03:10
236
原创 java执行本机命令
java 代码 Runtime currentRT = Runtime.getRuntime(); BufferedReader br = null; Process currentProcess; String tempInfo; System.out.println("开始调用命令..." + "\n"); try { currentP...
2019-02-16 13:37:59
328
原创 javax.xml.bind.annotation.XmlType
java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlType<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <versi...
2019-01-04 21:49:17
5123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人