- 20180308W2
1701段景昱
1)从电影中学到的最重要的概念生命是什么?在影片《死亡诗社》中,生命是诗,生命是音符,是戏剧中最华彩的篇章;生命是理想,生命是自由,是一个人所应具有的全部自信与独立;它引导着你,鼓舞着你,激励着你以向死而生的勇气去追求真正的青春年华与高贵信仰。2)我在短文里学到的怦然心动的单词religionn.信仰undauntedadj.勇敢的无畏的uniqueadj.独一无二的3)电影里我喜欢的一个句子To
- 20180308W2
李晓桐123456
1、从文章中学到的我们每个人都要用爱来回报自己所处的环境,像文章中来自陌生人善良的帮助,自己穷游到目的地。在同时不要错误理解别人的善意。世界上好人还是挺多的,有些人总是好心的,帮助他人也是一种美德。2、怦然心动的单词quainta.奇特的,诱人的solelyad.唯一地hitcha.免费搭车gamblen.冒险conquerby.克服almightya.极大的;全能的3、最喜欢的句子YetIwas
- 20180308W2
学霸不懂学渣的痛
1,从本篇文章/音频/视频中我学到的最重要的概念:学习本该是一件快乐的事情,却会因为老师的古板而变得了无生趣。教育是两代人的事。老师不能古板无趣学生不能没有任何的自我创新。2,我在本片文章/音频/视频中学到的怦然心动的单词:3,在本片文章/音频/视频中我最喜欢的一句话:Boys,youmuststrivetofindyourownVoice.Becausethelongeryouwaittobeg
- 20180308W2英语复盘日志
129贾楠
图片发自AppTheKindnessofStrangers1.我从本片文章中我学到的重要的概念:BelievetheKindnessofStrangers2.我在本片文章中学到的怦然心动的单词:flagdown挥手打信号使(车辆或驾驶者)停下lurk潜行鬼鬼祟祟地行动潜伏暗藏3.在本片文章中我最喜欢的一句话:Indeed,nomatterwhoyouare,youcanstilldependont
- 20180308W2英语复盘日志
114靳玉芳
DeadPoetsSociety图片发自App1.在电影中学到的概念:模式化的教育是一个残酷的现实,影片所讲述的不仅仅是这样的现实,更多的是反映出学生们对自主学习的向往,影片的结尾,看见了学生们骄傲的站在课桌上,这才是精神的胜利。图片发自App这部影片把我带回了高中那段时光,我们每天从家到学校两点一线,我们背着书包,一个个眉头紧锁,失去了青春期本来的模样,每天在题海中度过,枯燥乏味。2.电影中怦然
- 20180308W2
127冯宁
电影:死亡诗社1,从本篇文章/音频/视频中我学到的最重要的概念教学的过程是创新,是改变的过程,是教学方法的创新。而学习的过程不是一字一句的机械式输入,而是从心底里的热爱,是用于实际的学习。2,我在本片文章/音频/视频中学到的怦然心动的单词①carpediem(拉丁语)及时行乐,抓住今天;②sunset夕阳③constantly不断地;时常地3,在本片文章/音频/视频中我最喜欢的一句话Don'tbe
- 20180308w2英语复盘日志
147李源
Ⅰ.从本文章中学到的最重要的概念:Travelingmeansdifferentthingstodifferentpeople.Ⅱ.在文章中学到的怦然心动的单词:anticipationn.期待solida.不中断的,连续的fragilea.脆弱的Ⅲ.在本片文章中我最喜欢的一句话:YouspendalotoftimeoutsidetheUnitedKingdom,andthedisadvantag
- 20180308W2英语复盘日志
134张艳娇
DEADPOETSSOCIETY《死亡诗社》图片发自App1,从本部电影中我学到的最重要的概念:教育不应当只是接受知识,一味地学习。学校不应当只是追求升学率,老师不应当只是简单地教授知识,家长也不能片面地看待孩子的上学,不能盲目的对待,学生也要独立思考,真正的决定自己的未来。学生与这些人都要相互理解相互沟通,真正的实现教育的本来目的。2,我在本部电影中学到的怦然心动的单词:Carpediem及时行
- 20180308W2英语复盘
109强宇
死亡诗社1.【我从本电影中学到的概念】成长的路上,我们要敢于寻找自己内心的世界,学会独立自由的活着和思考。2.【我在本部电影中学到怦然心动的单词】marrown.精华,活力,骨髓heroicn.史诗;adj.英雄的extraordinary.推断3.【在本篇文章中最喜欢的一个句子】Iwenttothewoodsbecauseiwantedtolivedeliberately...我步入丛林,希望活
- 20180308W2英语复盘日志
芦政
电影1,从本篇文章/音频/视频中我学到的最重要的概念年少轻狂,可以对传统产生质疑,虽然困难是不可少的,但至少我们奋斗过。2,我在本片文章/音频/视频中学到的怦然心动的单词unique独一无二的strive斗争3,在本片文章/音频/视频中我最喜欢的一句话Boys,youmuststrivetofindyourownvoice.Becausethelongeryouwaittobegin,theles
- 20180308W2英语复盘日志
121赵丽
1)从电影中学到的最重要的概念虽然很多时候现实我们真的无能为力,但是也不要忘了初心,要努力的去争取自己想要的东西。2)我在短文里学到的怦然心动的单词religionn.信仰undauntedadj.勇敢的无畏的uniqueadj.独一无二的3)电影里我喜欢的一个句子惟有在梦中,人们才是真正自由的。Onlyintheirdreamscanmenbetrulyfree。4)看电影时遇到的困难故事线比较
- 20180308w2英语复盘日志
17数408王媛
从本周文章/音频/视频中我学到的最重要的概念thepeoplewhohadtheleasttogiveoftengavethemost.那些付出最少的人往往付出最多2,我在本周文章/音频/视频中学到的怦然心动的单词runcontraryto违背vague不明确的gamble冒险almighty全能的chilly寒冷的3,在本周文章/音频/视频中我最喜欢的一句话Iwasgratefultoallth
- 20180308W2英语复盘日志
17数423王蓉
死亡诗社1,从本篇文章/音频/视频中我学到的最重要的概念努力寻找自己内心的声音,去坚持自我,坚持自己的梦想2,我在本片文章/音频/视频中学到的怦然心动的单词thrilling令人激动的,令人毛骨悚然的slick圆滑的,花言巧语的bootlick巴结,奉承phalanx密集的人群3,在本片文章/音频/视频中我最喜欢的一句话Boys,youmuststrivetofindyourownvoice.Be
- 20180308w2复盘日志
117刘景景
1)从电影中学到的最重要的概念不要试图以一人之力改变事情,在没有足够能力去抗衡之前不能只注重自己心灵的解放。2)我在短文里学到的怦然心动的单词ripitup撕碎3)电影里我喜欢的一个句子Takeyourtimelosenotimemakehaywhilethesunshines.4)看电影时遇到的困难读不大懂电影在演什么,差点放弃看下去。5)语伴给我的建议听演员的发音,多多练习留意发音6)我的一些
- 20180308W2英语复盘日志
17数432翟爱红
1,从本片文章中我学到的最重要的概念:大多数人对陌生人都是有善意的2,我在本片文章中学到的怦然心动的单词:dilapidated破烂的shepherd引导3,在本片文章中我最喜欢的一句话:IwasgtatefultoallthepeopleImetfortheirrides,theirfood,theirshelter,theirgifts.Butthekindestactofallwaswhen
- 《死亡诗社》20180308W2英语复盘日志
17数401蒙莉霞
1,从电影中我学到的最重要的概念在校园里,一群循规蹈矩的学生,丝毫不敢反抗学校的纪律,知道基丁的老师出现,让学生们撕书,有些人还是犹豫,不敢遵从老师的意思,可是撕书过后,老师的一席悄悄话,给了同学们莫大的启发。我觉得2,我在电影中学到的怦然心动的单词stiff:拘谨的,一本正经的;僵硬的;不易弯曲的;难以应付的slick:圆滑的,花言巧语的travesty:滑稽模仿;歪曲,嘲弄3,在电影中我最喜欢
- 20180308W2复盘日志
17数420孙佳昕
1.我从本篇文章中学到的一个重要概念:人之初,性本善。世界上存在丑陋的事情,但是我们要相信心灵美的人还是很多的,我们要有一颗善良的心❤2.我在本篇文章中学到的怦然心动的单词:attentive注意的,专心的,注意听的revelation展示,揭露,显露have…inmind考虑renew更换,更新3.我在本篇文章中最喜欢的一句话:IhadinmindwhenIplannedthetripwascl
- 20180308W2英语复盘日志
141王成程
视听说P20-251,从本篇文章/音频/视频中我学到的最重要的概念Justmakejourneypartofourlifeandenjoyourselves,sothatwecanlearnmoreaboutothercultures.2,我在本片文章/音频/视频中学到的怦然心动的单词numerous:greatinnumber;many(众多的;许多的)dilemma:asituationinw
- 20180308W2英语复盘日志
145武鹏梅
电影:死亡诗社1.从本电影中我学到的最重要的概念:教学的过程需要创新,需要创新型的教学方式!而学习的过程不是一字一句的机械式输入,而是从内心底部对学习的热爱,是用于实际的学习。2.我在本电影中学到的怦然心动的单词⑴carpediem及时行乐,抓住今天;⑵constantly不断地;时常地3.在本电影中我最喜欢的一句话:Boys,youmuststrivetofindyourownvoice.Bec
- 数1五组20180308W2英语复盘日志汇总
134张艳娇
学生学号链接贾楠2920180308W2英语复盘日志李江平2520180308W2英语复盘日志张艳娇3420180308W2英语复盘日志安定宇2820180308W2英语复盘日志靳玉芳1420180308W2英语复盘日志武鹏梅4520180308W2英语复盘日志冯宁2720180308W2英语复盘日志王艳宏2420180308W2英语复盘日志评论3班5组
- 20180308w2英语复盘日志
146高家乐
1)从电影中学到的最重要的概念。Suppressingone'sdesirescanleadtohisdownfall.压制一个人的欲望可能会导致他走向毁灭。2)我在电影里学到的怦然心动的单词poetry诗,诗意discipline纪律3)电影里我最喜欢的一个句子Seizetheday,boys,makeyourlivesextrordinary。及时行乐,孩子们,让你的生命超越凡俗。4)看电影时
- 20180308W2英语复盘日志
17数442邢芬
1,从本周文章中我学到的最重要的概念:理解一篇文章最重要的还是词汇量,如果词汇量不够,那么理解一篇文章是很困难的。另外就是像老师所说的每天要给自己的单词库上新,这样才可以进步呦!2,我在本周文章中学到的怦然心动的单词:figure.v.认为,以为vague.adj.不明确的,不清楚的,含糊的compassionate.adj.有同情心的,怜悯的stamp.vt.把(图案,记号,字等)印盖在(某物品
- 20180308W2英语复盘日志
133宋双芳
备注:精读1,从本篇文章/音频/视频中我学到的最重要的概念:我们总是能感受到来自陌生人的关怀。2,我在本片文章/音频/视频中学到的怦然心动的单词:hitchhiker〈n.〉沿途搭便车旅行者hitch〈vt.〉搭乘便车旅行hitchhike〈vi.〉沿途搭便车旅行3,在本片文章/音频/视频中我最喜欢的一句话:Hearinglhadnomoneyandwouldtakenonepeopleineve
- 20180308W2英语复盘日志
112刘芳芳
1,从本篇文章/音频/视频中我学到的最重要的概念一般人喜欢旅行但不喜欢坐飞机。2,我在本片文章/音频/视频中学到的怦然心动的单词handicapped残疾的expedition远航temporary临时的3,在本片文章/音频/视频中我最喜欢的一句话andthedisadvantageofthatis,thatyou,youtendtomissfamiliesandfriends.4,我在学习今天材
- 20180308W2英语复盘日志
136段欣荣
Ted演讲视频1)从视频中学到的最重要的概念Realconfidenceisaboutongoinglearning.进步的奥秘就在规范现行的学习行为中。2)我在视频里学到的怦然心动的单词performvi.表演strivevi.努力,奋斗3)视频里我最喜欢的一个句子Realconfidenceisaboutongoinglearning.4)练习阅读作业时遇到的困难嗯虽然最后50秒演讲的速度并不
- 20180308W2复盘
17数436申婧柔
电影《死亡诗社》1.【我在这部电影学到的重要概念】应该用自由的教育方式让学生们明白自己的兴趣爱好,充分发挥他们的能力2.【文章中让我怦然心动的单词】strive努力,奋斗,抗争extraordinary非凡的,特别的deliberate故意的,深思熟虑的,从容的3.【文章中最喜欢的一句话】Boys,youmuststrivetofindyourownvoice.Becausethelongeryo
- 20180308W2英语复盘日志
132崔晓莹
1,从本篇文章中我学到的最重要的概念:陌生人的善意就是这世界上遇到困难时重拾生活希望的一缕火苗,不怕前路困难重重,最简单的帮助也会让世界更美!2,我在本篇文章中学到的怦然心动的单词:vagueadj.不明确的,含糊的/veɪɡ;veg/例句:Thegovernorgaveonlyavagueoutlineofhistaxplan.州长只是含糊地大致说了一下他的税务计划。cowboyn.牛仔/'ka
- 20180308W2英语复盘日志
106李芝星
[TED]Howtogetbetteratthethingsyoucareabout?1,从本篇文章中我学到的最重要的概念:Sothewaytohighperformanceistoalternatebetweenthelearningzoneandtheperformancezone,purposefullybuildingourskillsinthelearningzone,thenapply
- 20180308W2
120张明芳
1,从本篇文章/音频/视频中我学到的最重要的概念:旅行是一件很美好的事情,有人非常喜欢旅行,觉得去过的地方就像家一样,我们会在不同的地方遇到不同的人,学到不同的文化,这都是我们宝贵的经历。2,我在本片文章/音频/视频中学到的怦然心动的单词:passion激情,热情,酷爱lifestyle生活方式3,在本片文章/音频/视频中我最喜欢的一句话:yougettomeetdifferentpeopleco
- 20180308W2英语复盘日志
143赵洋
1)从电影中学到的最重要的概念虽然很多时候现实我们真的无能为力,但是也不要忘了初心,要努力的去争取自己想要的东西。2)我在短文里学到的怦然心动的单词religionn.信仰undauntedadj.勇敢的无畏的uniqueadj.独一无二的3)电影里我喜欢的一个句子惟有在梦中,人们才是真正自由的。Onlyintheirdreamscanmenbetrulyfree。4)看电影时遇到的困难故事线比较
- PHP如何实现二维数组排序?
IT独行者
二维数组PHP排序
二维数组在PHP开发中经常遇到,但是他的排序就不如一维数组那样用内置函数来的方便了,(一维数组排序可以参考本站另一篇文章【PHP中数组排序函数详解汇总】)。二维数组的排序需要我们自己写函数处理了,这里UncleToo给大家分享一个PHP二维数组排序的函数:
代码:
functionarray_sort($arr,$keys,$type='asc'){
$keysvalue= $new_arr
- 【Hadoop十七】HDFS HA配置
bit1129
hadoop
基于Zookeeper的HDFS HA配置主要涉及两个文件,core-site和hdfs-site.xml。
测试环境有三台
hadoop.master
hadoop.slave1
hadoop.slave2
hadoop.master包含的组件NameNode, JournalNode, Zookeeper,DFSZKFailoverController
- 由wsdl生成的java vo类不适合做普通java vo
darrenzhu
VOwsdlwebservicerpc
开发java webservice项目时,如果我们通过SOAP协议来输入输出,我们会利用工具从wsdl文件生成webservice的client端类,但是这里面生成的java data model类却不适合做为项目中的普通java vo类来使用,当然有一中情况例外,如果这个自动生成的类里面的properties都是基本数据类型,就没问题,但是如果有集合类,就不行。原因如下:
1)使用了集合如Li
- JAVA海量数据处理之二(BitMap)
周凡杨
java算法bitmapbitset数据
路漫漫其修远兮,吾将上下而求索。想要更快,就要深入挖掘 JAVA 基础的数据结构,从来分析出所编写的 JAVA 代码为什么把内存耗尽,思考有什么办法可以节省内存呢? 啊哈!算法。这里采用了 BitMap 思想。
首先来看一个实验:
指定 VM 参数大小: -Xms256m -Xmx540m
- java类型与数据库类型
g21121
java
很多时候我们用hibernate的时候往往并不是十分关心数据库类型和java类型的对应关心,因为大多数hbm文件是自动生成的,但有些时候诸如:数据库设计、没有生成工具、使用原始JDBC、使用mybatis(ibatIS)等等情况,就会手动的去对应数据库与java的数据类型关心,当然比较简单的数据类型即使配置错了也会很快发现问题,但有些数据类型却并不是十分常见,这就给程序员带来了很多麻烦。
&nb
- Linux命令
510888780
linux命令
系统信息
arch 显示机器的处理器架构(1)
uname -m 显示机器的处理器架构(2)
uname -r 显示正在使用的内核版本
dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)
hdparm -i /dev/hda 罗列一个磁盘的架构特性
hdparm -tT /dev/sda 在磁盘上执行测试性读取操作
cat /proc/cpuinfo 显示C
- java常用JVM参数
墙头上一根草
javajvm参数
-Xms:初始堆大小,默认为物理内存的1/64(<1GB);默认(MinHeapFreeRatio参数可以调整)空余堆内存小于40%时,JVM就会增大堆直到-Xmx的最大限制
-Xmx:最大堆大小,默认(MaxHeapFreeRatio参数可以调整)空余堆内存大于70%时,JVM会减少堆直到 -Xms的最小限制
-Xmn:新生代的内存空间大小,注意:此处的大小是(eden+ 2
- 我的spring学习笔记9-Spring使用工厂方法实例化Bean的注意点
aijuans
Spring 3
方法一:
<bean id="musicBox" class="onlyfun.caterpillar.factory.MusicBoxFactory"
factory-method="createMusicBoxStatic"></bean>
方法二:
- mysql查询性能优化之二
annan211
UNIONmysql查询优化索引优化
1 union的限制
有时mysql无法将限制条件从外层下推到内层,这使得原本能够限制部分返回结果的条件无法应用到内层
查询的优化上。
如果希望union的各个子句能够根据limit只取部分结果集,或者希望能够先排好序在
合并结果集的话,就需要在union的各个子句中分别使用这些子句。
例如 想将两个子查询结果联合起来,然后再取前20条记录,那么mys
- 数据的备份与恢复
百合不是茶
oraclesql数据恢复数据备份
数据的备份与恢复的方式有: 表,方案 ,数据库;
数据的备份:
导出到的常见命令;
参数 说明
USERID 确定执行导出实用程序的用户名和口令
BUFFER 确定导出数据时所使用的缓冲区大小,其大小用字节表示
FILE 指定导出的二进制文
- 线程组
bijian1013
java多线程threadjava多线程线程组
有些程序包含了相当数量的线程。这时,如果按照线程的功能将他们分成不同的类别将很有用。
线程组可以用来同时对一组线程进行操作。
创建线程组:ThreadGroup g = new ThreadGroup(groupName);
&nbs
- top命令找到占用CPU最高的java线程
bijian1013
javalinuxtop
上次分析系统中占用CPU高的问题,得到一些使用Java自身调试工具的经验,与大家分享。 (1)使用top命令找出占用cpu最高的JAVA进程PID:28174 (2)如下命令找出占用cpu最高的线程
top -Hp 28174 -d 1 -n 1
32694 root 20 0 3249m 2.0g 11m S 2 6.4 3:31.12 java
- 【持久化框架MyBatis3四】MyBatis3一对一关联查询
bit1129
Mybatis3
当两个实体具有1对1的对应关系时,可以使用One-To-One的进行映射关联查询
One-To-One示例数据
以学生表Student和地址信息表为例,每个学生都有都有1个唯一的地址(现实中,这种对应关系是不合适的,因为人和地址是多对一的关系),这里只是演示目的
学生表
CREATE TABLE STUDENTS
(
- C/C++图片或文件的读写
bitcarter
写图片
先看代码:
/*strTmpResult是文件或图片字符串
* filePath文件需要写入的地址或路径
*/
int writeFile(std::string &strTmpResult,std::string &filePath)
{
int i,len = strTmpResult.length();
unsigned cha
- nginx自定义指定加载配置
ronin47
进入 /usr/local/nginx/conf/include 目录,创建 nginx.node.conf 文件,在里面输入如下代码:
upstream nodejs {
server 127.0.0.1:3000;
#server 127.0.0.1:3001;
keepalive 64;
}
server {
liste
- java-71-数值的整数次方.实现函数double Power(double base, int exponent),求base的exponent次方
bylijinnan
double
public class Power {
/**
*Q71-数值的整数次方
*实现函数double Power(double base, int exponent),求base的exponent次方。不需要考虑溢出。
*/
private static boolean InvalidInput=false;
public static void main(
- Android四大组件的理解
Cb123456
android四大组件的理解
分享一下,今天在Android开发文档-开发者指南中看到的:
App components are the essential building blocks of an Android
- [宇宙与计算]涡旋场计算与拓扑分析
comsci
计算
怎么阐述我这个理论呢? 。。。。。。。。。
首先: 宇宙是一个非线性的拓扑结构与涡旋轨道时空的统一体。。。。
我们要在宇宙中寻找到一个适合人类居住的行星,时间非常重要,早一个刻度和晚一个刻度,这颗行星的
- 同一个Tomcat不同Web应用之间共享会话Session
cwqcwqmax9
session
实现两个WEB之间通过session 共享数据
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification impleme
- springmvc Spring3 MVC,ajax,乱码
dashuaifu
springjquerymvcAjax
springmvc Spring3 MVC @ResponseBody返回,jquery ajax调用中文乱码问题解决
Spring3.0 MVC @ResponseBody 的作用是把返回值直接写到HTTP response body里。具体实现AnnotationMethodHandlerAdapter类handleResponseBody方法,具体实
- 搭建WAMP环境
dcj3sjt126com
wamp
这里先解释一下WAMP是什么意思。W:windows,A:Apache,M:MYSQL,P:PHP。也就是说本文说明的是在windows系统下搭建以apache做服务器、MYSQL为数据库的PHP开发环境。
工欲善其事,必须先利其器。因为笔者的系统是WinXP,所以下文指的系统均为此系统。笔者所使用的Apache版本为apache_2.2.11-
- yii2 使用raw http request
dcj3sjt126com
http
Parses a raw HTTP request using yii\helpers\Json::decode()
To enable parsing for JSON requests you can configure yii\web\Request::$parsers using this class:
'request' =&g
- Quartz-1.8.6 理论部分
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2207691 一.概述
基于Quartz-1.8.6进行学习,因为Quartz2.0以后的API发生的非常大的变化,统一采用了build模式进行构建;
什么是quartz?
答:简单的说他是一个开源的java作业调度框架,为在 Java 应用程序中进行作业调度提供了简单却强大的机制。并且还能和Sp
- 什么是POJO?
gupeng_ie
javaPOJO框架Hibernate
POJO--Plain Old Java Objects(简单的java对象)
POJO是一个简单的、正规Java对象,它不包含业务逻辑处理或持久化逻辑等,也不是JavaBean、EntityBean等,不具有任何特殊角色和不继承或不实现任何其它Java框架的类或接口。
POJO对象有时也被称为Data对象,大量应用于表现现实中的对象。如果项目中使用了Hiber
- jQuery网站顶部定时折叠广告
ini
JavaScripthtmljqueryWebcss
效果体验:http://hovertree.com/texiao/jquery/4.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页顶部定时收起广告jQuery特效 - HoverTree<
- Spring boot内嵌的tomcat启动失败
kane_xie
spring boot
根据这篇guide创建了一个简单的spring boot应用,能运行且成功的访问。但移植到现有项目(基于hbase)中的时候,却报出以下错误:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.Lif
- leetcode: sort list
michelle_0916
Algorithmlinked listsort
Sort a linked list in O(n log n) time using constant space complexity.
====analysis=======
mergeSort for singly-linked list
====code======= /**
* Definition for sin
- nginx的安装与配置,中途遇到问题的解决
qifeifei
nginx
我使用的是ubuntu13.04系统,在安装nginx的时候遇到如下几个问题,然后找思路解决的,nginx 的下载与安装
wget http://nginx.org/download/nginx-1.0.11.tar.gz
tar zxvf nginx-1.0.11.tar.gz
./configure
make
make install
安装的时候出现
- 用枚举来处理java自定义异常
tcrct
javaenumexception
在系统开发过程中,总少不免要自己处理一些异常信息,然后将异常信息变成友好的提示返回到客户端的这样一个过程,之前都是new一个自定义的异常,当然这个所谓的自定义异常也是继承RuntimeException的,但这样往往会造成异常信息说明不一致的情况,所以就想到了用枚举来解决的办法。
1,先创建一个接口,里面有两个方法,一个是getCode, 一个是getMessage
public
- erlang supervisor分析
wudixiaotie
erlang
当我们给supervisor指定需要创建的子进程的时候,会指定M,F,A,如果是simple_one_for_one的策略的话,启动子进程的方式是supervisor:start_child(SupName, OtherArgs),这种方式可以根据调用者的需求传不同的参数给需要启动的子进程的方法。和最初的参数合并成一个数组,A ++ OtherArgs。那么这个时候就有个问题了,既然参数不一致,那