摘要: 1. 禁止自动部署 描述:配置自动部署,容易被部署恶意或未经测试的应用程序,应将其禁用 加固建议: 修改Tomcat 根目录下的配置文件conf/server.xml,将host节点的autoDeploy属性设置为“false”,如果host的deployOnStartup属性(如没有deployO 阅读全文
posted @ 2021-06-13 11:43 MakeCoder 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 在开发过程中,我们常会遇到中文乱码问题,因此我们需要将编码格式设一致,一般将编码格式设置为UTF-8格式(根据各自的项目需要设置编码,一般项目大多用UTF-8编码)。下面我们将介绍一下使用Eclipse开发工具进行开发时,设置编码格式(以UTF-8格式为例)的步骤:1、设置工作空间编码格式在Wind 阅读全文
posted @ 2020-02-27 12:17 MakeCoder 阅读(826) 评论(0) 推荐(0) 编辑
摘要: <bean id="accountDao" class="org.itcruce.dao.impl.AccountDaoImpl"> <property name="runner" ref="runner"></property> </bean> <!-- 注入数据源 --> <bean id="r 阅读全文
posted @ 2020-02-25 12:39 MakeCoder 阅读(618) 评论(0) 推荐(0) 编辑
摘要: import urllib.request import urllib.parse import urllib.error import re import os import ssl ssl._create_default_https_context = ssl._create_unverified_context path = "./images" headers = { "User-Agen 阅读全文
posted @ 2019-12-21 13:30 MakeCoder 阅读(277) 评论(0) 推荐(0) 编辑
摘要: import threading import time import requests import json from queue import Queue from lxml import etree class CrawlThread(threading.Thread): '''doc string for crawl thread''' def __init__(self, name, 阅读全文
posted @ 2019-12-21 13:23 MakeCoder 阅读(2127) 评论(0) 推荐(0) 编辑
摘要: function Debounce(wait: number, immediate: boolean = false) { return function (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) { let timeout: any; const... 阅读全文
posted @ 2019-07-05 18:47 MakeCoder 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1. 概念 1) 内存泄漏就是指程序中不再用到的对象依然占用的内存无法释放; 2) 程序中的内存过程:系统分配 程序使用 程序、系统释放 说到内存泄漏不得不提到垃圾回收机制 2. 垃圾回收机制 目前垃圾回收机制有两种: 1) 引用标记法 优势:简单 劣势:对于循环引用的对象无法清除 2) 标记清除法 阅读全文
posted @ 2019-04-11 15:50 MakeCoder 阅读(337) 评论(0) 推荐(0) 编辑
摘要: Ready 阅读全文
posted @ 2019-03-21 17:27 MakeCoder 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: 1. 类装饰器 应用于类构造函数,*****参数是类的构造函数 2. 方法装饰器 参数为:1)对于静态成员来说是类的构造函数,对于实例成员来说是类的原型对象2)成员的名字3)成员的属性描述符 3. 访问器装饰器参数为:1)对于静态成员来说是类的构造函数,对于实例成员来说是类的原型对象2)成员的名字3 阅读全文
posted @ 2019-03-20 13:00 MakeCoder 阅读(527) 评论(0) 推荐(0) 编辑
摘要: https://juejin.im/post/5ac61da66fb9a028c71eae1b 阅读全文
posted @ 2019-03-18 18:57 MakeCoder 阅读(120) 评论(0) 推荐(0) 编辑