xv6book Notes(C1-4)
一些细节和思考:
Q: wait for reading the source code and thinking
A: after reading the source code and thinking
一些细节和思考:
Q: wait for reading the source code and thinking
A: after reading the source code and thinking
jdbc: java database connectivity
jdbc 要先加载驱动,由各个数据库实现
jpa 通过 orm 框架生成 sql,再经过 jdbc 操作数据库
getBean 方法:
getBean 是 ApplicationContext 接口中的一个方法,用于从 Spring 的 IoC 容器中显式地获取 Bean 实例。
它通常在需要手动获取 Bean 时使用,比如在非 Spring 管理的类中或者在某些特定的场景下,你想要直接从容器中获取 Bean 而不是通过注入。
使用 getBean 方法时,你需要知道 Bean 的名称或类型,并在调用时指定这些信息。
示例代码:
linking 复习
• efficiency: small change requires complete recompilation
• modularity: hard to share common functions (e.g. printf)
seperate compilation: separately compiled relocatable object files
reloc object files -> executable object file
Linking is the process of: collecting and combining various pieces of code and data into a single executable file
Executable file: Can be loaded (copied) into memory and executed
ts: 带静态类型的 js
tsc --init
tsconfig.json
重 要配置
{
"compilerOptions": {
"target": "es2016", // 指定编译器
观前提示:
- 默认读者有基础的 js, ts, html 基础, 其中 html 和 js 在MDN Web Docs上看入门教程即可,ts 可以看mosh 的视频或者 google 一下 typescript tutorial 即可;
- 本人水平有限,错漏和不足之处敬请谅解
- 本笔记对应的视频: CodeWithMosh - React 18 for Beginners对应初级部分;code with mosh - React: Intermediate Topics对应进阶部分;相关代码可以在 github 找到。
gamehub: react + ts + ...
个人环境 Ubuntu 24.04
repo: 搜一搜就行 https://github.com/cs001020/hmdp?tab=readme-ov-file
idea config: 降java版本到11就能不报错
redis, mysql: 搜索即可 systemd 启动
nginx 稍微复杂一点, 给的是win下的nginx, 配完systemd之后,用他的nginx.conf替换/etc/nginx/nginx.conf(记得备份) 然后修改
# 指定前端项目所在的位置
location / {
root /home/ayanami/www/hmdp/html/hmdp; # 修改此处, 改为${下载的nginx文件夹原来位置}/hmdp/html/hmdp
不区分整数和浮点数 3 / 2 === 1.5
支持进制和科学计数
console.log(0b111110111); // 503
console.log(0o767); // 503
console.log(0x1f7); // 503
console.log(5.03e2); // 503