1. Error与Exception都继承自Throwable类 2. Error类层次描述了Java运行时系统内部错误和资源耗尽错误。 3. Exception类是所有异常类的父类,其子类对应了各种各样可能出现的异常事件。 4. 常见的异常类型 --ArithmeticException --Nu ...
分类:
其他好文 时间:
2019-02-27 17:35:35
阅读次数:
172
表单校验案例:https://github.com/JeffLi1993/springboot-learning-example/tree/master/chapter-4-spring-boot-validating-form-input git博客项目:https://github.com/Je ...
分类:
其他好文 时间:
2019-02-27 16:21:30
阅读次数:
181
官方文档 http://ranger.apache.org/quick_start_guide.html Quick Start Guide Build Process 1. Check out the code from GIT repository git clone https://gitbo ...
分类:
Web程序 时间:
2019-02-27 14:34:51
阅读次数:
207
一.在models.py创建模型 class Book(models.Model): # 表名就是app名_类名 id = models.AtuoField(primary_key=Ture) 1. 字段 CharField(max_length=32) 字符串字段,最大32个字符 IntegerF ...
分类:
其他好文 时间:
2019-02-27 01:39:06
阅读次数:
159
一、 MVC MVC 是一种使用 MVC(Model View Controller 模型-视图-控制器)设计创建 Web 应用程序的模式: Model(模型)表示应用程序核心(比如数据库记录列表)。 View(视图)显示数据(数据库记录)。 Controller(控制器)处理输入(写入数据库记录) ...
分类:
Web程序 时间:
2019-02-27 01:21:58
阅读次数:
195
Previously we have seen how to use Concat with reduce: To simply this, we can use 'fold': Javascript arrray doesn't have 'fold' so we use immutable-ex ...
分类:
其他好文 时间:
2019-02-26 19:29:38
阅读次数:
167
一 . 建表操作 要想将模型转为mysql数据库中的表,需要在setting里面写上这个,把原来带的替换掉 还需在项目名下的__init__的文件中写 : 写成这个的目的是将django默认的驱动MySQLdb 改为 pyMySQL,因为MySQLdb对于py3有很大的问题. 通过两条数据库迁移命令 ...
分类:
编程语言 时间:
2019-02-26 17:30:08
阅读次数:
178
【mysql】count(*)、count(1)和count(column)区别 小结: count(*) 对行的数目进行计算,包含NULL。 count(column) 对特定的列的值具有的行数进行计算,不包含NULL值。 count(1) 这个用法和count(*)的结果是一样的。 性能问题: ...
分类:
其他好文 时间:
2019-02-26 13:42:11
阅读次数:
183
HiBench 7官方:https://github.com/intel-hadoop/HiBench 一 简介 HiBench is a big data benchmark suite that helps evaluate different big data frameworks in te ...
分类:
其他好文 时间:
2019-02-26 13:38:47
阅读次数:
488