?传参 举例:http://localhost:8082/news/asset/getDatas?page=1&keyWord=123&year=2020 注解:@RequestParam 使用: @RequestMapping("/getDatas") public String getDatas(@RequestParam("page") int page, @RequestParam("keyWord") String ke
$与#的区别 select * from T_PRINT_LAYOUT where D_RECID = ${recId} 最后生成的SQL为: select * from T_PRINT_LAYOUT where D_RECID = 1 即:直接将参数值替换到了原来${recId}的位置,相当于硬拼SQL select * from T_PRINT_LAYOUT where D_RECID = #{recid,jdbcType=DECIMAL} 最后生成的SQL为: select * from