Silentdoer

导航

2018年4月21日 #

idea intellij对Spring进行单元测试

摘要: 1、加入Junit4及SpringJUnit4支持 <!-- junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <!-- s 阅读全文

posted @ 2018-04-21 22:22 Silentdoer 阅读(611) 评论(0) 推荐(0) 编辑

Mysql分析优化查询的方式

摘要: 一:查询语句分析 1.通过create index idx_colunmsName on tableName(columns)为某个表的某些字段创建索引,注意主键和唯一键都会自动创建索引; 如为表student的name和class字段创建联合索引:create index idx_name_cla 阅读全文

posted @ 2018-04-21 18:56 Silentdoer 阅读(179) 评论(0) 推荐(0) 编辑

整合Spring+Struts2+Mybatis加spring单元测试等

摘要: 前言 自己是在CentOS7的IntelliJ IDEA里开发的,里面中文输入法有问题经常用不了,所以这里用了很多chinglish,希望不要介意; 一:pom依赖 二:配置web.xml 三:配置struts2/mybatis/spring/mapper配置文件 注:均放在resources目录里 阅读全文

posted @ 2018-04-21 15:06 Silentdoer 阅读(584) 评论(0) 推荐(0) 编辑