上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页
摘要: Java1.4后新增assert关键字 Idea中开启assert断言 使用 assert boolean表达式 assert boolean表达式 : 错误提示信息 例子 public static void main(String[] args) { assert 0>1: "错误"; Syst 阅读全文
posted @ 2021-10-08 10:04 至安 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 问题描述 使用Maven打包项目的时候,出现错误: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update) 原因分析 web项目下缺少WEB-INF/web.xml 但是在servle 阅读全文
posted @ 2021-09-29 14:15 至安 阅读(1124) 评论(0) 推荐(0) 编辑
摘要: 链接 阅读全文
posted @ 2021-09-27 11:11 至安 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Java基础复习之:数组 简介 数组(Array):多个相同数据类型按照一定顺序排列的集合,并使用一个名字命名,通过编号的方式对这些数据进行统一管理 一维数组 一维数组的声明与初始化 int[] ids; //声明 ids[] = new int[]{1,2,3,4} //初始化 静态初始化 声明和 阅读全文
posted @ 2021-09-22 14:19 至安 阅读(444) 评论(0) 推荐(1) 编辑
摘要: java.lang.String类 概述 public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** The value is used for character 阅读全文
posted @ 2021-09-21 23:22 至安 阅读(45) 评论(0) 推荐(0) 编辑
摘要: List转Array toArray 首先展示初学者容易犯的错误示例 List<String> strList = new ArrayList<>(); strList.add("list-a"); strList.add("list-b"); String[] strArray = (String 阅读全文
posted @ 2021-09-21 23:02 至安 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: #1.如果没有wget命令,则需要执行下面命令进行安装。为保险期间,先执行下面命令。 yum install wget #2.备份原镜像源,以免出错后可以恢复。 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.rep 阅读全文
posted @ 2021-09-16 14:37 至安 阅读(160) 评论(0) 推荐(1) 编辑
摘要: https://blog.csdn.net/yanxilou/article/details/102843163 阅读全文
posted @ 2021-09-16 12:07 至安 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 问题 centos如何上网 解决方法 第一步: 打开VMware,选择菜单栏的Edit->Virtual Network Editor(虚拟网络编辑器)。点击Restore Defaults(即恢复默认设置)。 第二步: 登录已装好的CentOS7虚拟机。以root管理员身份登录系统。在终端下输入l 阅读全文
posted @ 2021-09-16 09:49 至安 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 问题 打开虚拟机镜像时报 VMware该虚拟机似乎正在使用中。如果该虚拟机未在使用,请按“获取所有权(T)”按钮获取它的所有权 解决方法 在你安装的镜像文件目录下找到后缀为.vmx.lck的文件夹,删除掉,再次打开就好了 阅读全文
posted @ 2021-09-16 09:03 至安 阅读(351) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页