![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
文章平均质量分 57
Code-zyc
这个作者很懒,什么都没留下…
展开
-
Shiro 整合springboot
这里写目录标题第一步 导入依赖第二步 建立shiroconfig 文件第三步 创建自定义的realm第四步:关于加密和解密:加密解密:补充 :登录与登出:第一步 导入依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring-boot-starter</artifactId> &l原创 2021-08-07 15:57:36 · 74 阅读 · 0 评论 -
Request method ‘POST‘ not supported
这里写目录标题原因:解决方法:失败页面效果图:原因:我的原因是因为 我把页面写在了静态资源下面 当作welcom页面:解决方法:把页面从 static 移动出来即可原创 2021-03-30 18:27:08 · 154 阅读 · 0 评论 -
spring boot 实现发送邮件功能
这里写目录标题第一步:获取授权码第二步:导入依赖:第三步:编写一个utils 即可:第一步:获取授权码QQ邮箱开通smtp服务后得到的授权码具体步骤自行百度第二步:导入依赖:第三步:编写一个utils 即可://发送邮件的方法 public static void email( String email) throws Exception { Properties properties = new Properties(); p原创 2021-04-01 16:39:27 · 111 阅读 · 0 评论 -
java与springboot 操作redis
文章目录Java(jedis)操作第一步导包第二步 代码Springboot 操作Java(jedis)操作第一步导包 <!--引入jedis连接依赖--> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version>原创 2021-08-23 22:38:25 · 100 阅读 · 0 评论 -
springboot 使用 Pagehlper插件
文章目录第一步导入依赖第二步:ymal 写入配置:官网第一步导入依赖<!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter --> <dependency> <groupId>com.github.pagehelper</groupId> <artifact原创 2021-03-31 21:50:17 · 207 阅读 · 0 评论 -
java (springboot) 从数据库存取 json 字段 (超简单)
文章目录前言:代码部分:第一步导入依赖:第二步 :配置typeHandler第三步:创建实体类:前言 我的数据库:实体类的创建:就和数据库对应就完事第四步:配置yaml 把你写的typehandler扫描:第四步:写xml:补充:代码:乱码问题前言:本人也是看了很多篇博客 他们讲的很细致还讲了原理 我这里直接上代码 尽量复制过去就马上能用代码部分:第一步导入依赖: <!-- https://mvnrepository.com/artifact/com.alibaba/fas原创 2021-04-19 20:32:05 · 4312 阅读 · 3 评论 -
.TemplateInputException: Error resolving template [user/borrow], template might not exist
错误页面:出错原因:controller 出错下图是我的代码 我是来测试一下的 然后返回值是null 所以报错了 他无法找到正确的改正法:加一个@responseBody 返回值 是字符串即可原创 2021-04-08 20:52:39 · 149 阅读 · 0 评论 -
swagger的基本使用
文章目录基础配置第一步添加依赖:第二步 创建基本的config第三步 输入网址即可:http://localhost:8080/swagger-ui.html自定义配置:配置页面信息及扫描位置注释的使用:@ApiModel 和 @ApiModelProperty@Api @ApiOperation @ApiParam基础配置第一步添加依赖:<dependency> <groupId>io.springfox</groupId>原创 2021-03-21 22:09:24 · 338 阅读 · 0 评论 -
springboot 使用验证码
目录首先导入依赖:完成配置文件:完成controller 的配置:前端如何实现:首先导入依赖:<!-- https://mvnrepository.com/artifact/com.github.penggle/kaptcha --><dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> &l原创 2021-03-31 11:52:41 · 186 阅读 · 0 评论 -
maven 打包 Using ‘UTF-8‘ encoding to copy filtered resources.
文章目录错误展示:解决方法:网上找的 方法一:(对我没用)方法二:(依旧没用)方法三 (有用!!!)错误展示:解决方法:网上找的 方法一:(对我没用)在pom.xml 里面写匹配置:<properties> <project.build.sourceEncoding> UTF-8 </project.build.sourceEncoding> </properties>方法二:(依旧没原创 2021-04-21 12:21:10 · 1424 阅读 · 0 评论 -
springboot整合 mbatisPlus
文章目录第一步导入场景配置yaml:第二步导入数据库链接:第三步 继承Basemapper补充:第一步导入场景配置yaml:官网把最新版本号填入即可<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>Latest Versio原创 2021-03-20 13:37:30 · 146 阅读 · 0 评论 -
springboot整合Mybatis
文章目录第一步导入对应的start场景:第二步 配置好对应的设置:第三步创建对应的 bean service 等等类注意创建的mapper要用@Mapper注解:第四步写congtroller 测试即可:补充 纯注解的方式:第一步导入对应的start场景:去官网查找 稍后补充 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifac原创 2021-03-18 20:12:57 · 94 阅读 · 0 评论 -
thymeleaf 笔记
文章目录insert replace include如何在空白处写数据域中的数据insert replace include前提:insert: 把原来的类容加入到里面replace : 替换掉 之前的divinclude:3.0后不建议使用 如何在空白处写数据域中的数据...原创 2021-03-17 10:41:42 · 97 阅读 · 0 评论 -
springboot 笔记
文章目录如何自定义扫描controller@ConfigurationProperties 绑定数据@SpringBootApplicationdev-tools(自动重启,静态页面达到热部署效果)如何自定义扫描controller@SpringBootApplication(scanBasePackages = "zyc")@ConfigurationProperties 绑定数据背景 :创建了一个user 类需要给他绑定数据解决:在application.properties 里面进行原创 2021-02-28 13:08:13 · 105 阅读 · 1 评论 -
ideal 下创建springboot项目
目录第一步配置maven第二步创建maven项目(略)第三步修改pom文件第四步 创建主程序第五步创建Controller第六步测试第一步配置maven已做过 详细看这里maven第二步创建maven项目(略)第三步修改pom文件跟着官网走 官网改好的大概是这样:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:原创 2021-02-19 17:45:04 · 104 阅读 · 0 评论