自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 mtbatis 模糊查询

<resultMap id="getallList" type="com.example.demo.pojo.node" autoMapping="true"> <result property="name" column="NameZh"></result> <result property="field" column="ResearchField"></result></resultMap>...

2020-05-10 14:57:05 152

原创 client url

CloseableHttpClient httpClient = HttpClients.createDefault();String entityStr = null;CloseableHttpResponse response = null;HttpPost httpPost = new HttpPost("http://localhost:8080/test/downLoadFile...

2020-04-14 15:12:52 245

原创 client 发送请求

package com.example.demo.service;import org.springframework.http.*;import org.springframework.http.client.ClientHttpResponse;import org.springframework.stereotype.Service;import org.springframew...

2020-04-14 15:12:22 411

原创 socket 客户端

public void getfile(String fileinfo) throws IOException { String uri="D:\\getfile\\"+fileinfo; LOG.info("文件存放位置"+uri); File f = new File(uri); Socket s = new Socket("192.168.0.108",5...

2020-04-14 15:11:03 79

原创 文件长传 socket

File target = new File(FileLocation);Thread t2=new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub try { new FTPServer(...

2020-04-14 15:10:16 84

原创 嵌入式derby

package Application;import org.eclipse.jetty.server.Server;import org.eclipse.jetty.webapp.WebAppContext;public class WebAppContextWithFolderServer { public static void main(String[] args) ...

2020-04-14 15:08:31 99

原创 testRSA

package RSA;import org.apache.commons.codec.binary.Base64;import javax.crypto.Cipher;import java.io.ByteArrayOutputStream;import java.security.*;import java.security.spec.PKCS8EncodedKeySpec;...

2020-04-14 15:07:53 146

原创 RSA

package RSA;import javax.crypto.Cipher;import java.security.*;import java.security.interfaces.RSAPrivateKey;import java.security.interfaces.RSAPublicKey;import java.security.spec.PKCS8EncodedKe...

2020-04-14 15:07:32 330

原创 AES解密

package AES.test;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.security.InvalidAlgorithmParameterExce...

2020-04-14 15:06:42 181

原创 AES加密 解密

package AES.test;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.security.AlgorithmParameters;import j...

2020-04-14 15:04:41 170

原创 ajax 带请求头跨域

nginx 解决 server { listen 80; server_name 192.168.0.108; #charset koi8-r; #access_log logs/host.access.log main; location /test/ {...

2020-04-14 15:03:54 261

原创 synchronized 同步方法

package test03;public class Count { public void synMethod() { synchronized(this) { try { for (int i = 0; i < 5; i++) { ...

2020-03-23 14:50:24 64

原创 synchronized

package test03;public class MYRunnbale implements Runnable{ @Override public void run() { // TODO Auto-generated method stub synchronized(this) { try { ...

2020-03-23 10:54:19 45

原创 java 创建线程的两种方法

public class thread extends Thread{ private int ticket=10; @Override public void run() { // TODO Auto-generated method stub for(int i=0;i<20;i++) { ...

2020-03-22 22:41:03 59

原创 tim()

trim()方法实际上trim掉了字符串两端Unicode编码小于等于32(\u0020)的所有字符。(前后空格啥的)

2020-03-22 17:31:27 170

原创 mybatis 模糊查询

public User login(@param("userName")String userName,@Param("password")String password)<select id="login" resultType="com.zpc.mybatis.pojo.User"> select * from tb_user where user...

2020-03-22 17:12:58 152

原创 sql-conncetor version 更新8.0.19

java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.

2020-03-22 17:07:09 116

原创 mapper id 重复

Mapped Statements collection already contains value for两种情况报错信息都为:java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements co...

2020-03-22 17:03:24 587

原创 mybatis的trim标签

<insert id="insertSelective" parameterType="com.bootdo.system.domain.LogDO"> insert into sys_log <trim prefix="(" suffix=")" suffixOverrides=","> 加上前缀和后缀 insert into sys_log...

2020-03-22 16:48:40 72

转载 java基础

https://snailclimb.gitee.io/javaguide/#/docs/java/Java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86

2020-02-25 19:51:01 87

原创 经验贴

作者:老刘链接:https://zhuanlan.zhihu.com/p/87858110来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。在上周,我密集面试了若干位Java后端的候选人,工作经验在3到5年间。我的标准其实不复杂:第一能干活,第二Java基础要好,第三最好熟悉些分布式框架。我相信其它公司招初级开发时,应该也照着这个标准来面的。我也知道...

2020-02-06 17:01:51 73

原创 mybatis配置问题 url的问题

url: jdbc:mysql://127.0.0.1:3306/mybatis?serverTimezone=UTC ?serverTimezone=UTC 报错

2020-01-18 15:16:58 1087 1

原创 @responsebody 一般加上是返回json数据啥的 不然默认模板引擎加载

@Controller层@RequestMapping后会直接返回ModelAndView对象,而对于Ajax请求,有些时候只需要返回String字符串或者一个Object对象,此时@ResponseBody这个注解通常使用在控制层(controller)的方法上,其作用是将方法的返回值以特定的格式写入到response的body区域,进而将数据返回给客户端。当方法上面没有写ResponseBod...

2020-01-17 14:51:56 517

原创 springboot 注册拦截器(视图映射 拦截器)

所有的WebMvcConfigurerAdapter组件都会一起起作用 将interceptor注册 @Bean可以实现拦截package com.example.demo.config;import com.example.demo.component.LoginHandlerInterceptor;import com.example.demo.component.MyLo...

2020-01-17 14:42:04 173

原创 蓝桥杯 垒骰子 dfs+剪枝

#include&lt;iostream&gt;using namespace std;int a[36][2];int m, n;int coun = 0;/*将对立面的情况枚举出来*///得到骰子的对立面int get(int x) { if (x == 1) return 4; if (x == 4) return 1; if (x == 2) ret...

2018-03-07 21:00:27 359

原创 直接插入排序

includeusing namespace std; void insert(int a[], int n) { int j; for (int i = 2; i < n; i++) { if (a[i] < a[i - 1]) { int pivot = a[i]; for

2017-12-30 15:34:35 160

空空如也

空空如也

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

TA关注的人

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