![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
山海皆可平,难平是人心
九万里悟道,终归诗酒田园
展开
-
个人博客从搭建开发环境到部署上线
原文地址:https://www.jianshu.com/p/a14724d2315e前台预览地址:https://panbingwen.cn预览效果:首页点击导航栏以上部分可以切换背景动态留言关于文章详情后台管理系统预览地址:https://manager.panbingwen.cn预览效果:登录用户管理留言管理评论管理文章管理写文章网站信息管理关注我管理轮播图管理默.原创 2020-05-31 09:59:52 · 318 阅读 · 0 评论 -
springboot实现https访问
略过springboot项目的创建步骤打开命令符窗口,输入如下命令C:\Users\Administrator>keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650根据提示输入完成后在C:\Users\A...原创 2019-11-12 14:51:03 · 590 阅读 · 0 评论 -
springboot结合MyBatis中使用foreach
废话少说,直接建项目上代码先建一个springboot web项目或者模块,目录结构如下在pom.xml中自行加入需要的依赖,application.properties的配置如下server.port=8888mybatis.mapper-locations=classpath*:mapper/*Mapper.xmlspring.datasource.url=jdbc:mysql:/...原创 2019-05-22 15:18:55 · 1811 阅读 · 0 评论 -
springboot结合全局异常处理之登录注册验证
在学校做一个校企合作项目,注册登录这一块需要对注册登录进行输入合法的服务器端验证,因为是前后端分离开发,所以要求返回JSON数据。方法有很多,这觉得用全局异常处理比较容易上手全局异常处理首先来创建一个sprIngboot的web项目或模块,目录结构如下实体类User.java@Datapublic class User { private String userName; ...原创 2019-05-11 15:56:18 · 279 阅读 · 0 评论 -
SpringBoot整合shiro从初恋到失恋
建个项目或者模块,目录结构如下在pom.xml中加入shiro依赖,其他依赖自行添加(lombok,jpa,mybatis,web,thymeleaf等) <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shi...原创 2019-05-07 20:53:26 · 116 阅读 · 0 评论 -
SpringBoot启动报错Failed to determine a suitable driver class
SpringBoot启动报错如下Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-05-06 21:27:18.275 ERROR 10968 --- [ main] o.s.b.d.Log...原创 2019-05-06 21:34:17 · 976 阅读 · 0 评论 -
SpringBoot,Vue前后端分离开发首秀
需求:读取数据库的数据展现到前端页面技术栈:后端有主要有SpringBoot,lombok,SpringData JPA,Swagger,跨域,前端有Vue和axios不了解这些技术的可以去入门一下lombok入门swagger入门SpringData JPA入门配置:mysql 8.0.11,IntelliJ IDEA 2017.1.2,HBuilderX 1.9.3首先创建一...原创 2019-04-24 22:44:55 · 187 阅读 · 0 评论 -
SpringBoot结合swagger2快速生成简单的接口文档
1. pom.xml中加入依赖 <dependency> <groupId>com.spring4all</groupId> <artifactId>swagger-spring-boot-starter</artifactId> <versio...原创 2019-04-24 21:58:19 · 187 阅读 · 0 评论 -
SpringBoot整合SpringData JPA入门到入坟
首先创建一个SpringBoot项目,目录结构如下:在pom.xml中添加jpa依赖,其它所需依赖自行添加 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start...原创 2019-04-24 21:18:28 · 92 阅读 · 0 评论 -
Jave Web阿里云短信服务发送验证码
首先得在阿里云根据流程开通短信服务,申请签名和模版,具体看文档因为这是个web项目,用到了thymeleaf模板,所以在pom.xml中加入如下依赖 <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactI...原创 2019-04-20 12:43:16 · 140 阅读 · 0 评论 -
SpringBoot结合Swagger2自动生成api文档
首先在pom.xml中添加如下依赖,其它web,lombok等依赖自行添加 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version&...原创 2019-04-24 14:39:36 · 126 阅读 · 0 评论 -
由表生成代码:mybatis-generator入门
application.properties## mapper xml 文件地址mybatis.mapper-locations=classpath*:mapper/*Mapper.xml##数据库urlspring.datasource.url=jdbc:mysql://localhost:3306/shiro?characterEncoding=utf8&useSSL=fals...原创 2019-04-13 23:38:57 · 86 阅读 · 0 评论 -
SpringBoot整合mybatis-plus入门
pom.xml中加入如下依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatisplus-spring-boot-starter</artifactId> <version>...原创 2019-04-13 23:27:57 · 425 阅读 · 0 评论 -
SpringBoot+JPA+cache入门
在pom.xml中加入如下依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency> <dependency&g...原创 2019-04-13 22:59:19 · 279 阅读 · 0 评论 -
SpringBoot+thymelates入门
在pom.xml当中加入这俩个依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> &...原创 2019-04-13 22:26:02 · 82 阅读 · 0 评论 -
lombok入门
pom.xml加入依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency>不用lo...原创 2019-04-13 22:11:32 · 107 阅读 · 0 评论 -
springboot+mybatis遇到自动注入找不到类
今天用springboot+mybatis写一个小demo遇到如下错误Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-04-08 14:11:11.359 ERROR 7300 --- [ ...原创 2019-04-13 21:26:37 · 763 阅读 · 0 评论 -
springboot在阿里CentOS 7后台永久运行
查看Java进程可以使用ps -ef|grep java首次后台永久启动,会把日志输出到新建的log.file文件nohup java -jar demo-0.0.1-SNAPSHOT.jar > log.file 2>&1 &非首次后台永久启动,会把日志追加到已存在的log.file文件nohup java -jar demo-0.0.1-SNAPSHO...原创 2019-04-13 20:29:36 · 295 阅读 · 0 评论