上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 36 下一页
摘要: 第四章 mybatis批量insert 批量插入sql语句: INSERT INTO table (field1,field2,field3) VALUES ('a',"b","c"), ('a',"b","c"),('a',"b","c") mybatis通过foreach循环拼装了如上的sql语句。 一、xml 复制代码 1 2 3 5 6 ... 阅读全文
posted @ 2018-12-21 09:18 雷神约 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 添加两个坐标: org.apache.poi poi 3.17 org.apache.poi poi-ooxml RELEASE dom4j dom4j 1.6.1 response.setContentType("application/excel"); List list = userService.selecetA... 阅读全文
posted @ 2018-12-20 17:41 雷神约 阅读(2313) 评论(0) 推荐(0) 编辑
摘要: package com.example.demo; import com.example.entity.UserJ; import com.example.respository.UserJRespository; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.f... 阅读全文
posted @ 2018-12-19 09:22 雷神约 阅读(670) 评论(0) 推荐(0) 编辑
摘要: springboot集成schedule(深度理解) 背景 在项目开发过程中,我们经常需要执行具有周期性的任务。通过定时任务可以很好的帮助我们实现。 我们拿常用的几种定时任务框架做一个比较: 从以上表格可以看出,Spring Schedule框架功能完善,简单易用。对于中小型项目需求,Spring Schedule是完全可以胜任的。 1、springboot集成sched... 阅读全文
posted @ 2018-12-18 10:16 雷神约 阅读(361) 评论(0) 推荐(0) 编辑
摘要: springBoot中配置mybatis的二级缓存 2018年01月22日 11:45:37 Ting.Xue(Martin.Xue) 阅读数:5604更多 个人分类: SSM的Spring框架Mybatis springBoot中配置mybatis的二级缓存 2018年01月22日 11:45:3 阅读全文
posted @ 2018-12-18 09:09 雷神约 阅读(3358) 评论(0) 推荐(0) 编辑
摘要: SpringBoot使用Redis缓存 (1)pom.xml引入jar包,如下: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifact 阅读全文
posted @ 2018-12-18 08:58 雷神约 阅读(3498) 评论(0) 推荐(0) 编辑
摘要: 返回主页 你是风儿 博客园首页新随笔联系订阅管理 随笔 - 29 文章 - 0 评论 - 23 FastJson对于JSON格式字符串、JSON对象及JavaBean之间的相互转换 fastJson对于json格式字符串的解析主要用到了一下三个类: JSON:fastJson的解析器,用于JSON格式字符串与JSON对象及javaBean之间的转换。 JSONObject:fastJso... 阅读全文
posted @ 2018-12-17 18:11 雷神约 阅读(324) 评论(0) 推荐(0) 编辑
摘要: package com.example.exception; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework.web.servlet.Mo... 阅读全文
posted @ 2018-12-17 16:56 雷神约 阅读(192) 评论(0) 推荐(0) 编辑
摘要: package com.example.demo;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTes... 阅读全文
posted @ 2018-12-17 12:44 雷神约 阅读(3103) 评论(1) 推荐(1) 编辑
摘要: 如何将字串 String 转换成整数 int? A. 有两个方法: 1). int i = Integer. parseInt ([String]); 或 i = Integer.parseInt ([String],[int radix]); 2). int i = Integer.valueOf([String]); 注: 字串转成 Double, Floa... 阅读全文
posted @ 2018-12-14 17:52 雷神约 阅读(4947) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 36 下一页