上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 问题探索 问题引入 目前在 Vite+Vue3 的项目中使用 fetch API 调用 siyuan 的 API 时候,如果加上 API 鉴权,就会返回 CORS 错误,如下: ​ 根据 https://developer.mozilla.org/en-US/docs/Glossary/Prefli 阅读全文
posted @ 2022-10-23 17:11 灯塔下的守望者 阅读(95) 评论(0) 推荐(0)
摘要: 安装 yarn add cross-fetch 使用 import fetch from 'cross-fetch'; polyfill的使用方式 import 'cross-fetch/polyfill'; 阅读全文
posted @ 2022-10-23 17:05 灯塔下的守望者 阅读(156) 评论(0) 推荐(0)
摘要: 基本方法 使用由 toString()​ 方法提供的默认的转换显示类集的内容,toString()​ 方法是从 AbstractCollection()​ 继承下来的。对于例子来说足够,但是通常情况下会重写此方法。 public class ArrayListTest1 { public stati 阅读全文
posted @ 2022-10-22 02:06 灯塔下的守望者 阅读(9) 评论(0) 推荐(0)
摘要: IDE(Integrated Development Environment),集成开发环境。 NetBeans。https://netbeans.org JBuilder。 IntelliJ IDEA https://www.jetbrains.com/idea/ Eclipse 中科大 ecli 阅读全文
posted @ 2022-10-21 22:27 灯塔下的守望者 阅读(78) 评论(0) 推荐(0)
摘要: 代号为 Mustang 。版本发布于 2006 年 12 月 11 日,Sun 把原本的名称“J2SE”改为“ Java SE ”,然后再从版本号中去掉“.0” [23] ,而开发者内部编号仍然是 1.6.0。 [24] 这个版本是根据 JSR 270(点击查看归档页面)开发的。 在发展阶段,新版本 阅读全文
posted @ 2022-10-21 22:19 灯塔下的守望者 阅读(89) 评论(0) 推荐(0)
摘要: 第一个 C 语言程序 #include <stdio.h> main() { printf("Hello, World!\n"); } 保存文件为 hello.c 编译 cc hello.c 运行 ./a.out 如下 ➜ clangcode cc hello.c hello.c:3:1: warn 阅读全文
posted @ 2022-10-21 11:01 灯塔下的守望者 阅读(220) 评论(0) 推荐(0)
摘要: 本文介绍了微软推出的C编译器Visual C(VC),以及其在软件开发中的应用。VC是功能强大的可视化软件开发工具,成为专业程序员的首选工具。文章提供了VC的下载地址和评价,指出它的功能齐全但安装较慢,适用于Windows平台。 阅读全文
posted @ 2022-10-20 23:44 灯塔下的守望者 阅读(284) 评论(0) 推荐(0)
摘要: 在 Java 中使用 Hibernate 的步骤 ​ 开始 Hibernate 开发 ​ ​ 上手第一个 Hibernate 项目 新建项目 打开 MyEclipse,新建一个 Web 项目 ​​ 项目名称为 hibernate ,配置使用默认(Java8、Java EE8、JSTL1.2.4),点 阅读全文
posted @ 2022-10-20 00:23 灯塔下的守望者 阅读(99) 评论(0) 推荐(0)
摘要: Hibernate官网 https://hibernate.org 目标 ​ 应用程序分层结构体系的发展 ​ ​ 软件分层的优点 ​ Java应用的持久化层 ​ Hibernate是持久化层的一种实现 ​ 软件的模型 ​ 模型之间的关系 ​ 概念模型 ​ 购物网站领域的概念模型 ​ 实体与实体之间存 阅读全文
posted @ 2022-10-19 20:50 灯塔下的守望者 阅读(45) 评论(0) 推荐(0)
摘要: 对于 Java 中的常量的命名规则:所有字母的单词都是大写,如果有多个单词,那马使用下划线 _​ 连接。 ​public static final int AGE_OF_PERSION = 20;​ Java Collection ​ ​ ​ ​ ​ ​ ​ ​ ​ 阅读全文
posted @ 2022-10-19 11:39 灯塔下的守望者 阅读(26) 评论(0) 推荐(0)
摘要: 数组查找 public class ArraySearchTest { public static void main(String[] args) { int[] a = new int[]{1, 5, 6, 7, 10, 3, 9}; int value = 9; int result = se 阅读全文
posted @ 2022-10-19 11:34 灯塔下的守望者 阅读(44) 评论(0) 推荐(0)
摘要: 冒泡排序 思路: 比如:3,5,6,2,4,7 结果:2,3,4,5,6,7 public class BubbleSort { public static void main(String[] args) { int[] a = new int[]{3, 5, 6, 2, 4, 7}; for ( 阅读全文
posted @ 2022-10-19 11:30 灯塔下的守望者 阅读(38) 评论(0) 推荐(0)
摘要: 包装类(Wrapper Class)。 针对原生数据类型的包装。 包装类(8 个)都位于 java.lang​ 包下。 java 中的 8 个包装类分别是:Byte,Short,Integer,Long,Float,Double,Character,Boolean。 他们的使用方式都是一样的,可以实 阅读全文
posted @ 2022-10-18 01:47 灯塔下的守望者 阅读(73) 评论(0) 推荐(0)
摘要: 查看数据库版本 -- 查看oracle版本 select * from product_component_version; 查看数据库列表 -- 查看数据库列表 select username as schema_name from sys.all_users order by username; 阅读全文
posted @ 2022-10-17 15:01 灯塔下的守望者 阅读(91) 评论(0) 推荐(0)
摘要: 字符串特性 ​String​​ 是常量,其对象一旦创建就无法改变。 当使用 +​​​ 拼接字符串时,会生成新的 String​​​ 对象,而不是向原有的 String​​​ 对象追加内容。 查看字节码 javap javap -c com.terwergreen.str.StringNewTest 阅读全文
posted @ 2022-10-17 11:09 灯塔下的守望者 阅读(28) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页