springboot 整合系列
springboot 整合系列
疯狗挨踢
上帝给了我一根棍子,我不想用它来搅屎。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot2整合二维码 生成二维码图片及输出web端及打印
step1 导包 <!-- 二维码 --> <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <versi...原创 2018-12-18 10:04:02 · 2786 阅读 · 0 评论 -
Spring Boot整合log4j记录日志
配置输出日志到控制台我这里使用xml配置log4j定义了8个级别的log(除去OFF和ALL,可以说分为6个级别),优先级从高到低依次为,我这里标了数字,数字越大优先级越小:OFF 0FATAL 1 ERROR 2 WARN 3 INFO 4 DEBUG 5TRACE 6ALL ...原创 2020-03-19 10:06:58 · 309 阅读 · 0 评论 -
springboot2之系统架构基础(一)项目创建
以idea工具讲解step1:创建一个springboot项目idea中不像eclipse,没有项目的概念,这里创建一个modulestep2step3step4.目前我们只需要勾选上WEB依赖即可,后面依赖需要时一一添加step5step6创建控制器package com.hg.java.demo.business.test;...原创 2018-12-10 15:30:28 · 758 阅读 · 0 评论 -
springboot2之系统架构基础(二.1)使用druid配置多数据源,集成mybatis
step1 引入相关依赖 <properties> <java.version>1.8</java.version> <druid.version>1.1.9</druid.version> <tk.mybatis.version>2.0.3</tk.mybat...原创 2018-12-11 17:34:36 · 705 阅读 · 0 评论 -
springboot2之系统架构基础(三)使用自定义注解动态切换数据源
yml配置数据源1数据源2step1. 创建自定义注解 DataSourcepackage com.hg.java.demo.common.annotions;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.ann...原创 2018-12-12 17:28:27 · 903 阅读 · 0 评论 -
springboot2之系统架构基础(四) pagehelper 使用详解
step1:引入jar包<!-- 分页jar包 --><dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <ver...原创 2018-11-20 09:22:02 · 860 阅读 · 1 评论 -
springboot2之系统架构基础(五) springboot整合redis
step1 导入pom配置<!-- spring redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis&...原创 2019-01-12 20:39:59 · 317 阅读 · 0 评论 -
springboot2之系统架构基础(六) Scheduled定时任务
step1 创建定时配置类 TaskSchedulerConfigpackage com.bhz.mail.config.schedule;import org.springframework.context.annotation.Configuration;import org.springframework.scheduling.annotation.EnableScheduli...原创 2019-01-16 21:24:13 · 329 阅读 · 0 评论 -
springboot2之系统架构基础(七.1) 发送邮件之springboot整合thymeleaf模板引擎
thymeleaf简介、Thymeleaf是用于Web和独立环境的现代服务器端Java模板引擎。Thymeleaf的主要目标是将优雅的自然模板带到您的开发工作流程中—HTML能够在浏览器中正确显示,并且可以作为静态原型,从而在开发团队中实现更强大的协作。Thymeleaf能够处理HTML,XML,JavaScript,CSS甚至纯文本。Thymeleaf的主要目标是提供一个优雅和高度可...原创 2019-01-17 21:34:41 · 738 阅读 · 0 评论 -
springboot2之系统架构基础(七.2) 发送邮件之springboot整合thymeleaf模板引擎
本章以(springboot2之系统架构基础(六) Scheduled定时任务:https://blog.youkuaiyun.com/nameIsHG/article/details/86514768)为基础,模拟定时发送邮件的一个功能step1 导入jar包 <!-- thymeleaf启动器 --> <dependency> <groupI...原创 2019-01-17 21:50:05 · 1218 阅读 · 0 评论
分享