计时器: 1 public void start() { 2 //定义计时器 3 Timer timer=new Timer(); 4 //定义运行间隔(数字越小,速度越快) 5 int interval=30; 6 //创建定时任务 7 TimerTask task=new TimerTask() ...
分类:
其他好文 时间:
2019-12-25 01:11:04
阅读次数:
115
应用命名空间和实例命名空间: 什么是实例命名空间:就是多个url映射到同一个app上,如下代码便是: path('cms1/', include('cms.urls')), path('cms2/', include('cms.urls')), 如下图: 基于上节(应用命名空间——016)的情况会出 ...
分类:
其他好文 时间:
2019-12-24 13:49:19
阅读次数:
61
Django是一个开放源代码的Web应用框架,由Python写成。采用了MTV的框架模式,即模型M,视图V和模版T。它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的,即是CMS(内容管理系统)软件。并于2005年7月在BSD许可证下发布。这套框架是以比利时的吉普赛爵士吉他手Dj ...
分类:
数据库 时间:
2019-12-24 11:59:53
阅读次数:
82
程序在运行过程中,会产生大量的内存垃圾(一些没有引用指向的内存对象都属于内存垃圾,因为这些对象已经无法访问,程序用不了它们了,对程序而言它们已经死亡),为了确保程序运行时的性能,java虚拟机在程序运行的过程中不断地进行自动的垃圾回收(GC)。关于 JVM 的 GC 算法主要有下面四种: 1、引用计 ...
分类:
编程语言 时间:
2019-12-23 20:56:56
阅读次数:
85
线程池概念 简单理解,它就是一个管理线程的池子。 它帮我们管理线程,避免增加创建线程和销毁线程的资源损耗。因为线程其实也是一个对象,创建一个对象,需要经过类加载过程,销毁一个对象,需要走GC垃圾回收流程,都是需要资源开销的。 提高响应速度。 如果任务到达了,相对于从线程池拿线程,重新去创建一条线程执 ...
分类:
编程语言 时间:
2019-12-23 15:10:25
阅读次数:
82
Properties Properties This is a full list of all the available properties that can be used within your routes.yaml config file to manipulate your URL ...
分类:
其他好文 时间:
2019-12-23 00:53:48
阅读次数:
109
Editor Editor The open-source Ghost editor is robust and extensible. Overview More than just a formatting toolbar, the rich editing experience within ...
分类:
其他好文 时间:
2019-12-23 00:49:29
阅读次数:
469
Custom Routes Custom Routes Template routes allow you to map individual URLs to specific template files within a Ghost theme. For example: make /custo ...
分类:
其他好文 时间:
2019-12-23 00:44:43
阅读次数:
110
URLs & Dynamic Routing URLs & Dynamic Routing Routing is the system which maps URL patterns to data and templates within Ghost. It comes pre-configure ...
分类:
Web程序 时间:
2019-12-23 00:44:12
阅读次数:
113
Redirects Redirects In addition to creating routes, you can also create redirects for any time there are any changes in your URLs and you need to forw ...
分类:
其他好文 时间:
2019-12-23 00:41:48
阅读次数:
112