目录
一.异常的概念
二.异常的体系结构
三.异常的处理
异常处理思路
LBYL:Look Before You Leap
EAFP: Its Easier to Ask Forgiveness than Permission
异常抛出throw
异常的捕获
提醒声明throws try-catch捕获处理
finally的作用
四.自定义异常类 一.异…
应用广播
发送标准广播的三步骤
发送标准广播:
//发送标准广播
Intent intent new Intent("com.dongnaoedu.chapter09.standard");
sendBroadcast(intent); 定义广播接受者:
public class StanderdReceiver extends BroadcastReceiver {
public s…
1、先构建基本的netty框架
再下面的代码中我构建了一个最基本的netty实现websocket的框架,其他个性化部分再自行添加。
Slf4j
public class TeacherServer {public void teacherStart(int port) throws InterruptedException {NioEventLoopGroup boss new NioEve…
本文为CentOS7.9下安装Python3.11.2环境的Dockerfile
# CentOS with Python3.11.2
# Author xxmail.com# build a new image with basic centos
FROM centos:centos7.9.2009
# who is the author
MAINTAINER xxmail.comRUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/…