摘要:
需要在body里面加上高度 阅读全文
摘要:
association:用于将关联查询信息映射到单个对象中。 标签注意使用javaType指定关联映射的对象类型 collection:用于将关联查询信息映射到集合对象中。 标签注意使用ofType指定关联映射的List中pojo的类型。 实体类中 private User user; 就 asso 阅读全文
摘要:
配置了驼峰命名之后就不需要 resultMap 来进行映射了 多表联合查询也是可以的,只需要实体类里面的属性要和sql里面的要对应起来 比如 在sql中的 create_time 字段 在实体类里面 对应 createTime 只要遵循规则就可以省去不少配置映射的时间 步骤 1.首先建立一个spri 阅读全文
摘要:
在maven jar配置文件中将插件配置放在和pluginManagement标签同级下 附上代码 阅读全文
摘要:
type - 基本层类型 类型:Number,默认:0 layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层) layer.closeAll(); //关闭所有层 layer.closeAll(‘dialog’); //关闭信息框 l 阅读全文
摘要:
获取对象 HttpServletResponse response 在接口开始加上这么一行代码即可 response.addHeader("Access-Control-Allow-Origin","*"); 阅读全文
摘要:
1.免安装版 在根目录下创建 my.ini 将一下内容拷贝到my.ini,然后重启服务即可 [mysqld]sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_ 阅读全文
摘要:
@RequestMapping("/exportVip") @ResponseBody public void exportVip(HttpServletRequest request, HttpServletResponse response, String time) throws IOException { //查询需要导出的数据 List... 阅读全文
摘要:
批量新增<insert id="insertList"> insert into sea_user (id, username,`time`) values <foreach collection="list" item="item" index="index" separator=","> (re 阅读全文
摘要:
/** * Excel导入 * @param request * @param file * @return * @throws Exception */@RequestMapping("/test.do")public Object test(HttpServletRequest request, 阅读全文