一:普通方式、 1、keySet(): Map<String, Object> map = new HashMap<>(); map.put("name", "张三"); map.put("age", 20); for (String key : map.keySet()) { String val ...
分类:
编程语言 时间:
2021-06-28 20:40:37
阅读次数:
0
<?xml version="1.0" encoding="UTF-8" ?> <!-- 在此未说明属性为非必须的,那就表示属性必须设置 --> <!-- *****************最小配置文件结构介绍******************************* --> <!-- <con ...
分类:
其他好文 时间:
2021-06-28 20:40:17
阅读次数:
0
“资源添加到Web应用程序[]的缓存中,因为在清除过期缓存条目后可用空间仍不足 - 请考虑增加缓存的最大空间” 解决办法: 在 /conf/context.xml 的 前添加以下内容: <Resources cachingAllowed="true" cacheMaxSize="100000" /> ...
分类:
其他好文 时间:
2021-06-28 20:36:55
阅读次数:
0
// CommonTest.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <atlbase.h> #incl ...
分类:
编程语言 时间:
2021-06-28 20:36:02
阅读次数:
0
1、Maven依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.7.1</version> </dependency> <dependency> <gr ...
分类:
其他好文 时间:
2021-06-28 20:30:27
阅读次数:
0
简介 sh是Unix最初使用的shell,Linux默认为bash,是sh的扩展。 source <FileName>:在当前bash环境下,读取并执行FileName中的命令,该FileName可以无执行权限,该命令可以用命令.代替; sh <FileName>或者bash <FileName>: ...
分类:
系统相关 时间:
2021-06-28 20:30:05
阅读次数:
0
编写重载模板 1 #include <iostream> 2 #include <sstream> 3 #include <string> 4 using namespace std; 5 6 template <typename T> 7 string debug_rep(const T &t) ...
分类:
编程语言 时间:
2021-06-28 20:25:45
阅读次数:
0
字符常量'M'的类型是int,大小4 bytes. 浮点数的如果没有加L(l)或者F(f),那它默认是double,大小8 bytes. 1 #include<stdio.h> 2 #include <stdbool.h> 3 4 int main() 5 { 6 int * int_p = NUL ...
分类:
编程语言 时间:
2021-06-28 20:24:08
阅读次数:
0
链接属性有external,internal,none。 关键字extern和static用于在生命中修改标识符的链接属性。 某个声明在默认的情况下是具有external属性的,前面追加static可以让它的属性变为internal。 helper.c: #include<stdio.h> int ...
分类:
编程语言 时间:
2021-06-28 20:22:08
阅读次数:
0
#include <bits/stdc++.h> using namespace std; using ll = long long ; ll euler(ll n){ ll k=n; for(ll i=2;i*i<=n;i++) if(n%i==0){ k-=k/i; while(n%i==0)n ...
分类:
其他好文 时间:
2021-06-28 20:14:20
阅读次数:
0