康拓普面試
1.springmvc常用注解
@Controller @Requestmapping @RequestParam @Path_variables @ResponseBody
2.常用數據庫優化:varchar可以建索引嗎
MySQL的btree索引和hash索引的區別
varchar類型數據可以建索引
3.常用數據庫表
4.hashmap遍歷的方式
1.通過map.keySet()遍歷key和value
2.Map.entrySet使用iterator遍歷key和value
3.通過Map.entrySet遍歷
4.通過Map.values遍歷所有的values,但不能遍歷key
5.springboot常用注解
@SpringbootApplication @Configuration @Bean @PropertySource(讀取proprtties中的內容) @Value(獲取properties中的內容) @ComponentScan(包掃描) @SpringBootTest
6.sql語句優化
7.查看sql的執行效率
mysql使用explain查看sql執行效率
8.mybatis #和$的區別
1、
#是預編譯的方式,
$是直接拼接;
2、
#不需要關注數據類型,mybatis實現自動數據類型轉換;
$不做數據類型轉換,需要自行判斷數據類型;
3、
#可以防止sql注入;
$不能防止sql注入;
4、
如果只有一個參數,默認情況下,
#{}中可以寫任意的名字;
${}中只能用value來接收。