在整合了SpringMVC的应用中,其实存在两个上下文容器,即两个WebApplicationContext,这两个容器是什么关系呢?且看分析。 1、Servlet启动顺序是先调用listener的监听方法,再调用servlet的init()方法。 2、Spring中存在一个ContextLoade ...
分类:
移动开发 时间:
2020-06-25 17:17:46
阅读次数:
64
void LED_Init(void) { //GPIOF9初始化设置 GPIO_InitTypeDef GPIO_InitStructure; RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE);//使能GPIOF时钟 GPIO_InitStr ...
分类:
其他好文 时间:
2020-06-25 17:15:29
阅读次数:
87
Bean的生命周期 创建、初始化(赋初值)、使用、销毁。 方法一:@Bean+返回值方式 init destory <bean id="student" class="org.ghl.entity.Student" scope="singleton" init-method="myInit" des ...
分类:
编程语言 时间:
2020-06-25 15:48:59
阅读次数:
60
方法1: 哈希表 时间复杂度:O(m+n) 空间复杂度:O(m)或O(n) class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def getIntersectionNode(sel ...
分类:
其他好文 时间:
2020-06-25 15:46:32
阅读次数:
40
free -h 查询运行内存 runlevel 运行模式 init 3 字符模式 init 5 图形模式 init 0 /poweroff 关机 init 6 /reboot 重启 who am i /who 查看用户 ctrl alt f2 临时切换字符界面 id -u userid 0 是超级用 ...
分类:
系统相关 时间:
2020-06-25 15:21:12
阅读次数:
76
description Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit. Example In ...
分类:
其他好文 时间:
2020-06-25 14:09:06
阅读次数:
65
首先把两个字符串拼在一起,中间夹一个不可能出现的字符。 然后就是一个简单容斥,我们假设给的字符串为 \(S_1\) 和 \(S_2\),新拼成的字符串为 \(S\),那么答案就是求 \(same(S)-same(S_1)-same(S_2)\),其中 \(same(s)\) 表示 \(s\) 这个字 ...
分类:
其他好文 时间:
2020-06-25 14:07:32
阅读次数:
48
1,首先在gitee上创建仓库,保留一个.gitigonore就行,这样就得到一个远程仓库地址 2,仓库有文件,那么就需要先将这个文件pull下来: 在本地的项目目录中执行:git init git remote add origin <远程仓库地址> git pull origin master ...
分类:
其他好文 时间:
2020-06-25 13:49:04
阅读次数:
96
原本就用一个github,但毕竟国外的,网速有点。。。疼,所以又准备用上以前的gitee,为了统一管理好ssh 的key,如下: 首先生成针对不同代码平台生成两个不同的秘钥对,注意邮箱要用你在平台上对应的邮箱 码云和github的秘钥生成过程右键git bash here 后执行如下命令:myHos ...
分类:
其他好文 时间:
2020-06-25 13:33:42
阅读次数:
72
1、wc统计文件行数的选项是(C) A、-L B、-w C、-l D、-c 2、Linux用户创建命令(A) A、useradd B、chown C、chmod D、groupadd 3、有一些文件某普通用户无法读取,说明其权限位缺少哪个权限(D) A、w B、s C、x D、r 4、bash脚本首 ...
分类:
其他好文 时间:
2020-06-25 12:12:44
阅读次数:
85