vi no_interaction_script1.sh #!/bin/bash #提示用户该脚本3秒后退出echo "This script will quit after 3 seconds. " #计时3s sleep 1echo -n "."sleep 1echo -n "."sleep 1 ...
分类:
系统相关 时间:
2021-04-13 12:16:49
阅读次数:
0
##RequestMapping RequestMapping中的method方法 method:指定请求的method类型, GET、POST、PUT、DELETE等; ##GetMapping 看一下注解的底层源码 可以看到底层用了@RequestMapping(method = Request ...
分类:
移动开发 时间:
2021-04-13 11:47:36
阅读次数:
0
四则运算代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ClassLibrary1{ public ...
分类:
其他好文 时间:
2021-04-12 12:51:16
阅读次数:
0
1 前言 腾讯IM发送离线消息,总是会提示参数中json数据不正确的错误,然而内容json格式是正确。原因是RestTemplate请求get,post的方法没使用正确导致。此文章记录一下。 2 代码 //参数中字符串中没有含有{} //样例:{"MsgRandom":407056434,"Sync ...
分类:
编程语言 时间:
2021-04-12 11:42:34
阅读次数:
0
输入数据过滤和验证 验证不改变数据,过滤会改变数据 session安全处理 1. 如果存储在cookie中的phpsessid被跨站脚本攻击(XSS)获取了,要尽可能缩短原有的会话id的有效时间 session_starrt(); session_regenerate_id(); //重新生成会话i ...
分类:
Web程序 时间:
2021-04-09 13:15:26
阅读次数:
0
前言 github:https://github.com/pengqiangsheng/easy-typer-js 内容 安装 npm install easy-typer-js --save 封装 print.js import EasyTyper from 'easy-typer-js' exp ...
分类:
Web程序 时间:
2021-04-09 13:02:48
阅读次数:
0
package com.supermarket.common.utils;import java.lang.reflect.Field;import java.lang.reflect.Method;import java.text.SimpleDateFormat;import java.time ...
分类:
编程语言 时间:
2021-04-08 13:35:35
阅读次数:
0
Spring里的占位符spring里的占位符通常表现的形式是: <bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"> <property name="url" val ...
分类:
编程语言 时间:
2021-04-07 11:19:32
阅读次数:
0
仅供自己学习 思路: 需要定义两个栈st1,st2.第一次调用CQueue()时,可以用于清空两个栈。加入元素的函数直接加入进st1即可,对于删除函数,要先判断st2是否为空,如果不为空直接从st2弹出元素,如果为空就从st1一直加元素直到st1为空,如果st1为空,st2没有元素加进去,那么就返回 ...
分类:
其他好文 时间:
2021-04-06 15:09:29
阅读次数:
0
springboot 事件监听(@EventListener实现) 应用:使用注解实现事件监听 ********************** 相关注解 @EventListener @Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE}) ...
分类:
编程语言 时间:
2021-04-06 14:35:53
阅读次数:
0