摘要: # 全部依赖 ```xml org.springframework spring-context 5.2.21.RELEASE org.springframework spring-aspects 5.2.6.RELEASE org.aspectj aspectjweaver 1.9.5 org.a 阅读全文
posted @ 2023-07-05 17:14 programmer-lite 阅读(678) 评论(0) 推荐(0) 编辑
摘要: ## 在Spring中,bean标签用于定义和配置bean对象。以下是常用的bean标签属性及其作用: > 1. id:指定bean的唯一标识符。在整个Spring容器中,每个bean都必须有一个唯一的id。 > 2. class:指定bean的类名。通过该属性,Spring将实例化并管理指定类的对 阅读全文
posted @ 2023-07-05 12:19 programmer-lite 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 在Spring中,可以使用`getBean()`方法从容器中获取一个已注册的bean实例。以下是`getBean()`方法的使用方法: 1. 使用ApplicationContext获取bean: ```java // 创建Spring应用上下文 ApplicationContext context 阅读全文
posted @ 2023-07-05 12:13 programmer-lite 阅读(208) 评论(0) 推荐(0) 编辑
摘要: ``是Spring框架中的一个标签,用于加载和解析属性文件,并将属性值注入到Spring容器中的bean中。以下是``的常用属性及其作用: 1. `location`:指定属性文件的位置。可以使用classpath前缀指定类路径下的属性文件,也可以使用文件系统路径或URL指定其他位置的属性文件。 2 阅读全文
posted @ 2023-07-05 12:01 programmer-lite 阅读(435) 评论(0) 推荐(0) 编辑
摘要: bean标签的子标签 1. property 2. constructor-arg 3. description 4. lookup-method 5. meta qualifier 6. replaced-method 在Spring配置文件中,bean标签下是各个标签的作用解释: 1. ``:用 阅读全文
posted @ 2023-07-05 10:47 programmer-lite 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 文档 https://www.runoob.com/java/java8-streams.html JDK8 Stream API: https://docs.oracle.com/javase/8/docs/api/index.html Stream流常用API 中间操作(Intermediate 阅读全文
posted @ 2023-01-29 10:09 programmer-lite 阅读(124) 评论(0) 推荐(0) 编辑
摘要: js获取各种高度的方法 源文章:https://www.cnblogs.com/MrzhangRecord/p/9185868.html 1.获取元素的高度 模板:html , css //css #box{ background-color: lightgrey; width: 300px; bo 阅读全文
posted @ 2022-02-04 22:19 programmer-lite 阅读(3119) 评论(0) 推荐(0) 编辑
摘要: #define 定义宏 宏(Macro)是预处理命令的一种,它允许用一个标识符来表示一个字符串 1.有关定义宏的代码末尾不需要添加";"(分号) 2.定义宏define在计算的式子中相当于替代,类似于数学中的需要带入数值的x #include <stdio.h> #define ADD(x,y) x 阅读全文
posted @ 2022-01-14 17:25 programmer-lite 阅读(72) 评论(0) 推荐(0) 编辑
摘要: static关键字的使用 static:静态 未使用static 在下列代码中变量a是有生命周期的,调用完后就会被销毁 所以for循环每次调用test函数打印的结果都是2 #include <stdio.h> void test() { int a = 1; a++; printf("%d", a) 阅读全文
posted @ 2022-01-14 17:24 programmer-lite 阅读(28) 评论(0) 推荐(0) 编辑
摘要: extern关键字的使用 作用:声明外部符号(使用其他文件的全局变量) 例子: 源文件: test.c #include <stdio.h> extern int year;//使用extern关键字从add.c源文件中声明外部符号的全局变量 int main(){ printf("%d", yea 阅读全文
posted @ 2022-01-14 17:24 programmer-lite 阅读(27) 评论(0) 推荐(0) 编辑