上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: 参考:https://www.baeldung.com/category/http/tag/httpclient/ POM配置 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</arti 阅读全文
posted @ 2021-09-06 18:02 飞翔在天 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 方式1:通过XML方式指定配置文件路径,用于XML文件中属性 Book.java @Component @Getter @Setter @Data public class Book {private String name; } beans.xml <context:property-placeh 阅读全文
posted @ 2021-09-03 18:03 飞翔在天 阅读(277) 评论(0) 推荐(0) 编辑
摘要: @EnableXXX这一类注解的作用:就是用来启用某一个功能的配置。启用某一功能,仅需要加上一个注解即可生效,可以使组建之间的相互依赖降低了耦合性。 @EnableWebSecurity @EnableScheduling @EnableAsync @EnableWebMvc @EnableCach 阅读全文
posted @ 2021-08-22 18:57 飞翔在天 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 关键概念澄清:bean validation是规范,通过JSR定义。 Hibernate validation是具体的实现。 参考: https://beanvalidation.org/2.0/ 规范官网,介绍规范演进,JSR1.0->1.1->2.0 定义和实现方(Hibernate valid 阅读全文
posted @ 2021-08-19 20:59 飞翔在天 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 一、反射: java.lang.reflect.* Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); Constructor<?> cons1 = birdClass.getConstructor(); Const 阅读全文
posted @ 2021-08-18 16:52 飞翔在天 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 一、基础知识 1. AOP产生背景 2. AOP 典型应用场景 3. 术语 3.1 通知(Advice) 3.2 连接点(Join point) 3.3 切点(Pointcut) 3.4 切面(Aspect) 3.5 引入(Introduction) 3.6 织入(Weaving) 二. 通过切点来 阅读全文
posted @ 2021-05-25 23:26 飞翔在天 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 参考:https://mybatis.org/mybatis-3/zh/dynamic-sql.html 通过 if, choose, when, otherwise, trim, where, set, foreach等标签,可组合成非常灵活的SQL语句 一、if:根据条件作为 where 子句的 阅读全文
posted @ 2021-05-19 20:02 飞翔在天 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 参考:https://mybatis.org/mybatis-3/zh/sqlmap-xml.html 一、select <select id="selectPerson" parameterType="int" resultType="hashmap"> SELECT * FROM PERSON 阅读全文
posted @ 2021-05-19 19:52 飞翔在天 阅读(126) 评论(0) 推荐(0) 编辑
摘要: POM配置 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.6</version> </dependency> <dependency> <groupId>org.my 阅读全文
posted @ 2021-05-19 19:45 飞翔在天 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Aware系列接口,主要用于辅助Spring bean访问Spring容器; 使用者需实现响应Aware子类接口,并定义相应的成员属性,如ApplicationContext 每个Aware子接口都实现了一个setXX方法,而方法中的形参是接口Aware前面的内容,也就是当前Bean需要感知的内容。 阅读全文
posted @ 2021-05-17 23:25 飞翔在天 阅读(52) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页