07 2018 档案

摘要:开发工具:STS 代码下载链接:GitHub管理项目 前言: Springcloud 算是当前比较火的技术,一套微服务架构的技术。 我个人对微服务的理解为: 服务可以代表service,微服务就是小的service,或者说逻辑上不可再分的功能单元。 比如一个电商管理平台,包括:用户管理、商品管理、订 阅读全文
posted @ 2018-07-24 14:46 零度微笑 阅读(4647) 评论(1) 推荐(0)
摘要:1 <dependency> 2 <groupId>org.projectlombok</groupId> 3 <artifactId>lombok</artifactId> 4 <version>1.18.0</version> 5 <scope>provided</scope> 6 </depe 阅读全文
posted @ 2018-07-19 14:45 零度微笑 阅读(769) 评论(0) 推荐(2)
摘要:开发工具:STS 代码下载链接:GitHub管理代码 版本: Springboot:1.5.14.RELEASE 使用2.0以上的Springboot,会报出一些异常。欢迎知道异常原因的大牛解惑。 MybatisPlus:2.3 前言: MP扩展了Mybatis对实体的一些简单的CRUD操作,我们不 阅读全文
posted @ 2018-07-19 09:26 零度微笑 阅读(3445) 评论(0) 推荐(2)
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 阅读全文
posted @ 2018-07-19 09:19 零度微笑 阅读(916) 评论(0) 推荐(0)
摘要:开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/Springboot/tree/52ef6c0c805913db1e66ed18671c322e284233f0 前言: 之前我们有讲过Quartz任务调度。 现在,我们来讲解下Spring自己的任务 阅读全文
posted @ 2018-07-16 16:36 零度微笑 阅读(809) 评论(0) 推荐(0)
摘要:开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/Springboot/tree/0d6194d6ea2d7f4e19791a3d3f3167f861f6453d 前言: 在上一篇博客中,我们写了简单邮件的发送和带附件的邮件发送。 在本节里,我们来写 阅读全文
posted @ 2018-07-16 11:51 零度微笑 阅读(463) 评论(0) 推荐(0)
摘要:开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/Springboot/tree/8878e8e89ce01ceb967ef8c1193ac740a6f7dd40 前言: 每当你生日那天,腾讯官方都会给你致上一封精美的生日祝福邮件...... 当你在 阅读全文
posted @ 2018-07-16 10:39 零度微笑 阅读(448) 评论(0) 推荐(1)
摘要:开发工具:Eclipse 代码下载链接:https://github.com/theIndoorTrain/QuartzDemo.git 前言: 在1.初始Quartz里面,我们介绍了quartz的一种简单使用,就是精确的时间去控制任务的调度, 例如,多久后执行任务,多久后结束之类的。 这种模式并不 阅读全文
posted @ 2018-07-14 15:53 零度微笑 阅读(332) 评论(0) 推荐(0)
摘要:Cron: 计划任务,是任务在约定的时间执行已经计划好的工作,这是表面的意思。在Linux中,我们经常用到 cron 服务器来完成这项工作。cron服务器可以根据配置文件约定的时间来执行特定的作务。 Cron表达式: 是一种表达计划执行时间的表达式。 表达式结构: 秒 分 时 日 月 周 年 因为年 阅读全文
posted @ 2018-07-14 15:42 零度微笑 阅读(1020) 评论(0) 推荐(0)
摘要:开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/QuartzDemo.git 前言: 接触一个新事物的开始,我们都会产生一些疑问: Quartz是什么? Quartz是用来做什么的? 答: Quartz是一个任务调度框架。说明白点,就是定制任务的。 阅读全文
posted @ 2018-07-14 09:38 零度微笑 阅读(435) 评论(0) 推荐(0)
摘要:开发工具:STS 前言: mybatis框架中最具特色的便是sql语句中的自定义,而动态sql的使用又使整个框架更加灵活。 动态sql中的语法: where标签 if标签 trim标签 set标签 switch\when标签 foreach标签 一、搭建项目 1.创建用户表: 2.添加实体: 1 p 阅读全文
posted @ 2018-07-04 12:06 零度微笑 阅读(742) 评论(0) 推荐(0)
摘要:前言: 我们知道,在mybatis中,参数取值方式有两种: #{ } 和 ${ } 下面,我们来探讨下#{ }与${ }不同。 一、#{ } 例: select * from student where name=#{name} 编译后执行的sql语句: select * from student 阅读全文
posted @ 2018-07-03 09:46 零度微笑 阅读(430) 评论(1) 推荐(0)
摘要:开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/SpringBoot_Mybatis/tree/1d30d2a573ce6784149a28af9b8afcab7414370c PageHelper官方地址:https://pagehelper.g 阅读全文
posted @ 2018-07-02 17:31 零度微笑 阅读(632) 评论(1) 推荐(1)
摘要:开发工具:STS 代码下载链接:https://github.com/theIndoorTrain/SpringBoot_Mybatis/tree/7892801d804d2060774f3720f82e776ff318e3ba 前言: 在调用mybatis的查询条件时,之前,遇到需要验证多个参数的 阅读全文
posted @ 2018-07-02 16:02 零度微笑 阅读(4592) 评论(0) 推荐(0)