
springboot
文章平均质量分 91
ccmedu
这个作者很懒,什么都没留下…
展开
-
org.neo4j.driver.v1.exceptions.ServiceUnavailableException: This can happen due to network instabili
org.springframework.dao.DataAccessResourceFailureException: Could not create driver instance; nested exception is org.neo4j.ogm.exception.ConnectionException: Could not create driver instance at org.springframework.data.neo4j.transaction.SessionFactor...原创 2021-07-21 11:17:10 · 5548 阅读 · 2 评论 -
Java+springboot最简单的验证码的获取与使用方式
本文采用ehcache 的方式校验验证码真伪,ehcache不需要安装环境(类似于redis、memcached这种本地或者服务器上的环境)很方便。思路是将获取到的验证码发送给用户,并且缓存到服务器,记录用户ID以及对应的验证码,设置失效时间为五分钟。1、pom.xml 中添加依赖<!--开启 cache 缓存 --><dependency> &l...原创 2019-03-19 17:36:33 · 2423 阅读 · 3 评论 -
Spring Boot——多文件上传大小超限问题解决
org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field fileName exceeds its maximum permitted size of 1048576 bytes.Spring Boot默认文件上传大小为2M,多文档上传中总是出现文件大小超出限度...转载 2017-11-09 09:25:59 · 22721 阅读 · 10 评论 -
REST API: Java Spring Boot and MongoDB
REST API: Java Spring Boot and MongoDB第一次做翻译的如果有没翻译准确的欢迎指出,Typora上面编辑的文章移植到优快云格式就有很多问题,如有需要可以到我的优快云下载中下载(https://download.youkuaiyun.com/download/ccmedu/11442425)或者直接邮箱艾特我本人。作者是:Thomas GleasonREST A...翻译 2019-07-28 22:54:35 · 410 阅读 · 0 评论 -
Springboot 学习笔记1
@SpringBootApplication:springboot 应用标注在某个类上说明这个类是Springboot的主配置类springboot就应该允许这个类的main方法来启动Springboot应用;@SpringBootConfiguration:SpringBoot 的配置类;标注在某个类上,表示这是一个Springboot的配置类;@Configuration:配置...原创 2019-08-26 11:05:10 · 158 阅读 · 1 评论 -
SpringBoot 学习笔记2
不是页面跳转而是把数据交给浏览器就需要用ResponseBody如果是对象则转为json对象4.2以上@RestControllerSpring Initializerapplication.propertiesapplication.yml 全局配置文件 标记语言以数据为中心yaml 语法1,基本语法k:空格v:空格必须要以空格的缩进来控制层级关系;...原创 2019-08-26 11:06:01 · 202 阅读 · 0 评论 -
SpringBoot学习笔记3
@ 4.配置文件值注入@Value@Value:1.字面量 2.#{spel} 3.${key}从环境变量配置文件中取值@Value获取值和@ConfigurationProperties获取值比较松散语法绑定:last_name = last-name = lastName 他们取的值都是相同的配置文件yml还是properties他们都能获取到值;如果说,我们只是在...原创 2019-08-26 11:46:39 · 234 阅读 · 0 评论