08 2020 档案

摘要:###1. 导入pom配置 <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.6</version> </dependency> ###2. applicat 阅读全文
posted @ 2020-08-27 19:28 一只小白的进修路 阅读(150) 评论(0) 推荐(0)
摘要:###1. 整合Junit框架 //在@Test所在的类上添加,并在所要用到的方法上 类型注入 @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations="classpath:com/c21w/SpringLear 阅读全文
posted @ 2020-08-27 02:43 一只小白的进修路 阅读(178) 评论(0) 推荐(0)
摘要://需要在applicationContext.xml中配置 <context:component-scan base-package="com.c21w"></context:component-scan> ###1. 把类存入IOC容器 //类上注解 //XX 和xml中bean标签的id作用相 阅读全文
posted @ 2020-08-27 01:43 一只小白的进修路 阅读(166) 评论(0) 推荐(0)
摘要:###1. 创建Bean对象的三种方式 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/200 阅读全文
posted @ 2020-08-25 13:55 一只小白的进修路 阅读(193) 评论(0) 推荐(0)
摘要:###1. 导入maven依赖 <!--引入Spring依赖--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.0.RELEASE</v 阅读全文
posted @ 2020-08-06 14:55 一只小白的进修路 阅读(639) 评论(0) 推荐(1)
摘要:测试SQL语句 CREATE TABLE `blog`( `id` VARCHAR(50) NOT NULL COMMENT '博客id', `title` VARCHAR(100) NOT NULL COMMENT '博客标题', `author` VARCHAR(30) NOT NULL COM 阅读全文
posted @ 2020-08-04 22:14 一只小白的进修路 阅读(316) 评论(0) 推荐(0)
摘要:resultMap <select id="方法名" resultMap="XX"></select> <!--(要和resultMap中的id相同)--> <resultMap id="XX" type="最终要查询的pojo对象"> <result column="表的一个字段名" proper 阅读全文
posted @ 2020-08-01 01:36 一只小白的进修路 阅读(176) 评论(0) 推荐(0)