![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
suxinhaixp
qq:983321013
展开
-
springboot整合druid
流程概括:利用Spring Initializr创建一个springboot项目 pom添加druid数据源依赖 配置Druid数据源属性文件 实现Druid的配置类 启动,访问localhost:8080/druid 进入druid数据源监控系统一、pom添加druid数据源依赖在pom.xml添加druid依赖<dependency> ...转载 2019-04-26 10:37:58 · 394 阅读 · 2 评论 -
springboot 过滤器拦截器
SpringBoot中的过滤器和拦截器的实现前言最近在做一个基于springboot的项目,顺便总结一下springboot项目中的过滤器、拦截器和以前项目的区别。一、过滤器1.SpringBoot中使用过滤器不需要在web.xml中配置filter,只需要添加注解@WebFilter同时实现Filter接口import java.io.IOException;import...转载 2019-04-26 12:14:26 · 1819 阅读 · 0 评论 -
Spring Date Jpa on update current_timestamp 自动维护创建时间和更新时间
@Entity@Tablepublic class Topic implements Serializable{ private static final long serialVersionUID = -7752115605498533357L; @Id @GeneratedValue private Integer id; private S...转载 2019-04-30 15:29:28 · 2511 阅读 · 0 评论 -
springboot整合mybatis注解版与XML配置版
在spring中,构建一个项目,最麻烦也最容易出错的莫过于各种xml文件的配置,即使是一个简单的demo也需要花费一定量的时间去搭建与配置环境,而springboot可以直接理解为一个轻量级但功能依旧强大的spring,只需要填写必要的配置文件,其余的springboot帮你全搞定,简直赞的不行。接下来,开始springboot之旅吧。1、项目的构建在idea中菜单栏,file–>Sp...转载 2019-05-13 10:11:54 · 152 阅读 · 0 评论 -
springboot整合poi,创建和读取.xlsx文件,添加合并单元格、边框以及背景色
最新项目中用到了Excel做配置文件的需求,就想把其记录下来。本文用的xssf,适用于excel高版本步骤如下:1、添加依赖。 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi<...原创 2019-09-03 11:15:41 · 857 阅读 · 0 评论