web.xml中配置 <!-- 配置spring核心监听器,默认会以 /WEB-INF/applicationContext.xml作为配置文件 --> <listener> <listener-class>org.springframework.web.context.ContextLoaderL ...
分类:
编程语言 时间:
2020-04-14 21:03:46
阅读次数:
117
[TOC] Paramiko模块 通过ssh远程链接服务器并执行响应的操作,类似于XShell ps:ansible批量管理服务器工具,底层用的就是paramiko模块 安装 基本使用 远程链接服务器的方式 用户名和密码 公钥私钥的方式 paramiko上面两种方式都支持 链接 用户名和密码的方式 ...
分类:
编程语言 时间:
2020-04-14 18:25:58
阅读次数:
79
web.xml 里配置 <context-param> <param-name>webAppRootKey</param-name> <param-value>bookdir</param-value></context-param>在方法里获取 String pathUrl = System.ge ...
分类:
Web程序 时间:
2020-04-14 12:29:56
阅读次数:
79
严重: End event threw exception java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addServlet解决办法:在tomcat文件路径下conf中的context.xml进行修改,添加<L ...
分类:
Web程序 时间:
2020-04-14 01:17:22
阅读次数:
92
fileName = "f.txt"content = "blank context" Dim objFSOSet objFSO = CreateObject("scripting.filesystemobject")absFileName = objFSO.GetAbsolutePathName( ...
分类:
其他好文 时间:
2020-04-13 19:57:27
阅读次数:
109
Motivation 动机 In this context, a responsibility is considered to be one reason to change. This principle states that if we have 2 reasons to change fo ...
分类:
其他好文 时间:
2020-04-12 22:18:34
阅读次数:
93
日常开发过程中,滚动事件做复杂计算频繁调用回调函数很可能会造成页面的卡顿,这时候我们更希望把多次计算合并成一次,只操作一个精确点,JS把这种方式称为debounce(防抖)和throttle(节流) 函数防抖 当持续触发事件时,一定时间段内没有再触发事件,事件处理函数才会执行一次,如果设定时间到来之 ...
分类:
Web程序 时间:
2020-04-12 16:15:24
阅读次数:
84
前言 在实际开发当中,Spring中bean的属性直接赋值用的不是太多,整理这方面的资料,做一个小结,以备后续更深入的学习。 通过配置文件的方式 以配置文件的方式启动spring容器时,可以使用property标签的value给bean的属性赋值,赋值的形式有以下几种: <--通过context:p ...
分类:
编程语言 时间:
2020-04-12 10:32:46
阅读次数:
72
8、 使用注解开发 在spring4之后,要使用注解开发,必须要保证aop的包导入了。 使用注解需要导入context约束,增加注解的支持! 1. bean 2. 属性如何注入 3. 衍生的注解 @Component有几个衍生注解,我们在web开发中,会按照mvc三层架构分层! dao【@Repos ...
分类:
编程语言 时间:
2020-04-11 23:58:14
阅读次数:
147
ylbtech-System.Reflection.ParameterInfo.cs 1.返回顶部 1、 #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Pro ...
分类:
其他好文 时间:
2020-04-11 10:21:00
阅读次数:
62