
Spring Boot
Spring Boot学习
谦言
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring Boot将不在maven中央仓库的jar包引入项目中,并通过maven把项目成功打包成jar包部署
背景用maven创建了spring boot项目,由于用的数据库是Oracle,maven中没用Oracle的依赖,所以将本地jar包复制到项目中的某个文件夹,这里以“src/main/resources”这个目录为例。解决方案1.将jar包复制到“src/main/resources”这个目录下2.在pom.xml文件中定义依赖指向引入的文件<!-- Oracle -->...原创 2020-03-28 16:01:34 · 715 阅读 · 0 评论 -
Spring Boot AOP日志记录,使用token传递用户信息
一、AOP1、自定义注解package com.zongtu.aop.annotation;import java.lang.annotation.*;/** * @Description: 定义注解,拦截controller */@Retention(RetentionPolicy.RUNTIME)//元注解,定义注解被保留策略,一般有三种策略 ...原创 2020-03-28 15:34:41 · 1269 阅读 · 0 评论 -
Spring Boot中使用MyBatis的分页插件PageHelper
Springboot中使用MyBatis的分页插件PageHelperPageHelper简介PageHelper是Github上开源的MyBatis分页插件。Github网址:https://github.com/pagehelper/Mybatis-PageHelper/blob/master/README_zh.md添加maven依赖<dependency> ...原创 2020-03-28 11:27:31 · 155 阅读 · 0 评论