整合流程 导入相关的包 mybatis;mybatis-spring;spring-webmvc;spring-jdbc;aspectjweaver(AOP面向切面);mysql;lombok;junit 可以参考mybitis-spring的文档进行学习:http://mybatis.org/sp ...
分类:
编程语言 时间:
2020-12-30 11:30:58
阅读次数:
0
panic支持抛出任意类型的异常(而不仅仅是error类型的错误),recover函数调用的返回值和panic函数的输入参数类型一致,它们的函数签名如下: func panic(interface{}) func recover() interface{} Go语言函数调用的正常流程是函数执行返回语 ...
分类:
其他好文 时间:
2020-12-30 11:17:15
阅读次数:
0
占位... from https://gobyexample.com/worker-pools package main import ( "fmt" "time" ) func worker(id int, jobs <-chan int, results chan<- int) { for j ...
分类:
其他好文 时间:
2020-12-30 10:49:19
阅读次数:
0
JWT(即json web token),大家先看下面这张图 大家可以观察到,jwt String就是生成后的jwt字符集,其中有两个 "."(注意:jwt校验会对"."个数校验,多或少都会校验失败),被"."分割的就是jwt的三个构成部分,即:header、payload、sign。 接下来,给大 ...
分类:
其他好文 时间:
2020-12-30 10:48:44
阅读次数:
0
import java.io.*; public class TIME { public static void main(String[] args) { File oldName = new File("路径/test.png"); File newName = new File(System. ...
分类:
移动开发 时间:
2020-12-30 10:46:56
阅读次数:
0
1.使用Marshal类的StructureToPtr与PtrToStructure函数对object与byte数组进行转换 命名空间:System.Runtime.InteropServices /// <summary> /// 将对象转换为byte数组 /// </summary> /// < ...
分类:
编程语言 时间:
2020-12-30 10:46:02
阅读次数:
0
处理线程中打开文件,每次读取一行并记录当前读取位置,没有下一行让出一秒logfile = './logs/%s_%s.log' % (appName, time.strftime('%Y_%m_%d')) file = open(logfile, 'r', encoding='utf-8') whi ...
分类:
编程语言 时间:
2020-12-30 10:45:44
阅读次数:
0
code # -*- coding:utf-8 -*- from flask import Flask from flask import request import hashlib import time import re import xml.etree.ElementTree as ET ...
分类:
微信 时间:
2020-12-29 11:45:23
阅读次数:
0
背景 操作系统是 centos 6,RabbitMQ 3.8.1. 服务器突然无法连接,重启后查看/var/log/messages,报错日志如下: epmd: erlang mapper daemon cant fork 2'nd time Cannot allocate memory epmd: ...
分类:
系统相关 时间:
2020-12-29 11:23:04
阅读次数:
0
flume的概述 Apache Flume是一个分布式,可靠且可用的系统,用于有效地从许多不同的source收集,聚合和移动大量日志数据到集中式数据存储。 Apache Flume的使用不仅限于日志数据聚合。由于数据source是可定制的,因此Flume可用于传输大量event 数据,包括但不限于网 ...
分类:
Web程序 时间:
2020-12-29 11:10:09
阅读次数:
0