RewriteEngine On# 将404页面跳转到 http://abc.com/ ErrorDocument 404 http://abc.com/# 将 不是abc.com 永久跳转到 http://abc.comrewriteCond %{http_host} !^abc.com [NC] ...
分类:
数据库 时间:
2019-12-06 21:17:47
阅读次数:
95
package IODemo; import java.io.*; /* 打印流 : 很方便的进行输出 字节打印流 增强输出功能 字符打印流 */ public class PrintStreamDemo { private static void charPrint(){ File file = ...
分类:
编程语言 时间:
2019-12-03 23:02:34
阅读次数:
115
这里我们主要参考一下官方的例程: 1 using System; 2 using System.IO; 3 using System.Security.Cryptography; 4 5 namespace Aes_Example 6 { 7 class AesExample 8 { 9 publi ...
普通函数 一、输入输出函数 1、print()函数 输出函数 向屏幕输出指定的汉字 print("hello world") print()函数可以同时输出多个字符串,用逗号“,”隔开 print("hello","how","are","you") print()会依次打印每个字符串,遇到逗号“, ...
分类:
编程语言 时间:
2019-11-28 21:39:38
阅读次数:
82
当使用Select选择器时,如果下拉列表的数据量太多,会有一个明显的卡顿体验,例如: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https:/ ...
分类:
其他好文 时间:
2019-11-28 18:58:38
阅读次数:
125
导入必要的jar包 <dependency> <groupId>ch.ethz.ganymed</groupId> <artifactId>ganymed-ssh2</artifactId> <version>build250</version> </dependency> public stati ...
分类:
编程语言 时间:
2019-11-27 17:33:03
阅读次数:
113
public class MyExceptionUtils { /** * 输入异常的堆栈信息 * @param aThrowable * @return */ public static String getStackTrace(Throwable e) { final Writer result ...
分类:
其他好文 时间:
2019-11-26 13:39:19
阅读次数:
58
public class MyExceptionUtils { /** * 输入异常的堆栈信息 * @param aThrowable * @return */ public static String getStackTrace(Throwable e) { final Writer result ...
分类:
其他好文 时间:
2019-11-26 13:25:12
阅读次数:
76
先贴一个代码 class Program { static void Main(string[] args) { var channels = Channel.CreateBounded<Mail>(2); var mail1 = new Mail(1, $"Message #{1}"); var ...
按数据流向:输入流和输出流 输入和输出都是从程序的角度来说的。 输入流:数据流向程序 输出流:数据从程序流出。 按处理单位:字节流和字符流 字节流:一次读入或读出是8位二进制 字符流:一次读入或读出是16位二进制 JDK 中后缀是 Stream 是字节流;后缀是 Reader,Writer 是字符流 ...
分类:
编程语言 时间:
2019-11-24 11:46:06
阅读次数:
166