12 2018 档案

摘要:package com.irm.jd.service; import com.irm.jd.entity.Sit; import com.irm.jd.mapper.SitMapper; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFSheet; import org... 阅读全文
posted @ 2018-12-28 17:38 雷神约 阅读(219) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch 阅读全文
posted @ 2018-12-27 14:39 雷神约 阅读(7239) 评论(0) 推荐(1)
摘要:颓废的悠然 颓废的悠然 颓废的悠然 springboot shiro开启注释 shiroconfiguration中增加 1 2 3 4 5 6 7 @Bean public AuthorizationAttributeSourceAdvisor authorizationAttributeSour 阅读全文
posted @ 2018-12-23 12:03 雷神约 阅读(1112) 评论(0) 推荐(0)
摘要:学习、改良、极致 博客园 首页 新随笔 联系 管理 订阅 随笔- 31 文章- 0 评论- 50 Thymeleaf 常用属性 文章主目录 th:action th:each th:field th:href th:id th:if th:include th:fragment th:object 阅读全文
posted @ 2018-12-21 16:12 雷神约 阅读(1183) 评论(0) 推荐(0)
摘要:第四章 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 雷神约 阅读(183) 评论(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 雷神约 阅读(2334) 评论(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 雷神约 阅读(717) 评论(0) 推荐(0)
摘要:springboot集成schedule(深度理解) 背景 在项目开发过程中,我们经常需要执行具有周期性的任务。通过定时任务可以很好的帮助我们实现。 我们拿常用的几种定时任务框架做一个比较: 从以上表格可以看出,Spring Schedule框架功能完善,简单易用。对于中小型项目需求,Spring Schedule是完全可以胜任的。 1、springboot集成sched... 阅读全文
posted @ 2018-12-18 10:16 雷神约 阅读(389) 评论(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 雷神约 阅读(3388) 评论(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 雷神约 阅读(3560) 评论(0) 推荐(0)
摘要:返回主页 你是风儿 博客园首页新随笔联系订阅管理 随笔 - 29 文章 - 0 评论 - 23 FastJson对于JSON格式字符串、JSON对象及JavaBean之间的相互转换 fastJson对于json格式字符串的解析主要用到了一下三个类: JSON:fastJson的解析器,用于JSON格式字符串与JSON对象及javaBean之间的转换。 JSONObject:fastJso... 阅读全文
posted @ 2018-12-17 18:11 雷神约 阅读(343) 评论(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 雷神约 阅读(202) 评论(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 雷神约 阅读(3119) 评论(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 雷神约 阅读(4974) 评论(0) 推荐(0)
摘要:from urllib import parse s = parse.unquote("%7B%22name%22%3A%22joe%22%2C%22age%22%3A%2223%22%7D") print(s) import json b = json.loads(s) print(type(b)) print(b['name']) 阅读全文
posted @ 2018-12-14 15:07 雷神约 阅读(748) 评论(0) 推荐(0)
摘要:package com.zhilei.test;import java.util.Comparator;import java.util.HashMap;import java.util.Map;import java.util.TreeMap;public class mapValueCompar 阅读全文
posted @ 2018-12-14 13:37 雷神约 阅读(518) 评论(0) 推荐(0)
摘要:package com.example.controller;import com.example.entity.User;import com.example.service.UserService;import com.github.pagehelper.PageHelper;import co 阅读全文
posted @ 2018-12-13 10:52 雷神约 阅读(233) 评论(0) 推荐(0)
摘要:server: port: 8080 spring: datasource: url: jdbc:mysql://localhost:3306/jdjk?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8 username: root password: kkk hika... 阅读全文
posted @ 2018-12-10 17:57 雷神约 阅读(220) 评论(0) 推荐(0)