1、AOP:【动态代理】定义 指在程序运行期间动态的将某段代码切入到指定方法指定位置进行运行的编程方式; 2、基于注解aop的开发流程 1、导入aop模块;Spring AOP:(spring-aspects) 2、定义一个业务逻辑类(MathCalculator);在业务逻辑运行的时候将日志进行打 ...
分类:
编程语言 时间:
2021-06-28 19:07:09
阅读次数:
0
#什么是外键约束 #一张表中的某个字段引用另一个表的主键 #主表: 约束别人 #副表/从表: 使用别人的数据,被别人约束 -- 已有表增加外键语法 ALTER TABLE 从表 ADD [CONSTRAINT] [外键约束名称] FOREIGN KEY (外键字段名) REFERENCES 主表(主 ...
分类:
数据库 时间:
2021-06-28 19:05:43
阅读次数:
0
/* 指定考试成绩,判断成绩的等级。 90-100 优秀 80-89 好 70-79 良 60-69 及格 60以下 不及格 */ public class IfElsePractise{ public static void main(String[] args){ int score = 98; ...
分类:
其他好文 时间:
2021-06-28 19:00:36
阅读次数:
0
implementation 'org.greenrobot:eventbus:3.2.0' EventBus package com.qiqi.app.bean; public class EventMessageWrap { public final String message; public ...
分类:
其他好文 时间:
2021-06-28 18:59:05
阅读次数:
0
用法说明 此提取器用于提取请求返回结果中的某个值或者某一组值,用法比正则表达式要简单,标准写法为$.key,其中key为返回结果map中的一个键,如果是多层则继续用.key进行即可,如果遇到key的value值为一个List,则使用.key[n],其中n为list中元素的编号,如下使用实例来说明下如 ...
分类:
Web程序 时间:
2021-06-28 18:57:26
阅读次数:
0
/*单if语句的格式: if(关系表达式){ 语句体; } */ public class SeguenceIf{ public static void main(String [] args){ System.out.println("今天天气不错,正在压马路,突然发现一个好玩的地方:网吧"); ...
分类:
其他好文 时间:
2021-06-28 18:55:48
阅读次数:
0
方法的重载 public class MethodDemo05 { public static void main(String[] args) { int add1 = add(1, 2); System.out.println(add1); System.out.println(" "); in ...
分类:
其他好文 时间:
2021-06-28 18:55:14
阅读次数:
0
多对多关联与中介模型 一 多对多关联的三种方式 # 多对多关联关系的建立有三种方式。 1 方式一:自行创建第三张表 class Author(models.Model): nid = models.AutoField(primary_key=True) name = models.CharField ...
分类:
其他好文 时间:
2021-06-28 18:54:27
阅读次数:
0
可变参数 实际上参数是数组 public class MethodDemo07 { public static void main(String[] args) { MethodDemo07 demo07 = new MethodDemo07(); demo07.test(1,2,3,4,5,6,7 ...
分类:
其他好文 时间:
2021-06-28 18:53:22
阅读次数:
0
递归 public class MethodDemo09 { //2! 2*1 //3! 3*2*1 //5! 5*4*3*2*1 public static void main(String[] args) { MethodDemo09 demo09 = new MethodDemo09(); i ...
分类:
其他好文 时间:
2021-06-28 18:52:21
阅读次数:
0