
springboot
空-白_格
这个作者很懒,什么都没留下…
展开
-
MapStruct使用中的那些坑
如图所示 来源 实体类Customer里面有这几种属性,但是上面显示没有,执行的时候就一直报错,最终看一下maven-compiler-plugin的版本低了注意防坑,这里maven插件要使用3.6.0版本以上、lombok使用1.16.16版本以上,不然会遇到感人的报错,除此之外没有写 getters, setters也会出现这个报错...原创 2020-05-12 23:11:10 · 15681 阅读 · 1 评论 -
记一次lombok插件,编译找不到set/get方法报错
如图所示,我检查了lombok插件是否安装以及File - Settings - Build, Execution, Deployment - Compiler - Annotation Processors 检查再看jar的引入也没有问题。但是执行的时候,编辑就显示找到set/get方法。我们仔细看一下然后我们把对应的选项改一下,如图所示:重新执行一下,执行成功。...原创 2020-05-12 22:19:11 · 975 阅读 · 0 评论 -
org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.1报错
Spring boot集成flyway做数据库版本管理的时候,启动服务报错org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.1 (FixUsername)数据库信息显示:这个错误主要是由于flyway_schema_history里面的记录数据影响到了启动,以及还需要检查一下这个sql里面的表是否有创建,如果没有创建的话也会报错,将这个sql里面的表创建..原创 2020-05-11 14:40:09 · 15693 阅读 · 0 评论 -
spring boot 邮件服务
发送邮件是网站必备的功能之一。最早期的时候我们会使用JavaMail相关api来写发送邮件的相关代码,后来spring推出JavaMailSender更加简化了邮件发送的过程,在之后springboot对此进行了封装就有了现在的spring-boot-starter-mail。本文主要介绍此包。1、pom包配置pom包里面添加spring-boot-starter-mail包引用...原创 2018-08-30 11:19:54 · 533 阅读 · 0 评论 -
学习spring-boot-mail的时候碰到的关于javaMail的异常解决办法
在使用JavaMail给QQ邮箱发邮件的过程中虽然碰到了很多问题,但是总结起来大致可以分成一下几类:第一类:smtp 服 务 未开 启(没有 授 权 码):因为在用代码发邮件之前,我用的Foxmail添加了QQ邮箱账户,添加的时候报错:-ERR Please using authorized code to login. More information at http://service...转载 2018-08-29 16:37:36 · 8822 阅读 · 0 评论 -
spring Boot 中使用WebJars
WebJars能使Maven的依赖管理支持OSS的JavaScript库/CSS库,比如JQuery、Bootstrap等;WebJars是将Web前端Javascript和CSS等资源打包成Java的Jar包,这样在Java Web开发中我们可以借助Maven这些依赖库的管理,保证这些Web资源版本唯一性。(1)pom文件中添加想对应的依赖<!-- 引入bootstrap -...原创 2018-08-29 15:28:22 · 338 阅读 · 0 评论 -
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. 错误提示解决方法
在main中的run方法报出异常,“The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.context.ConfigurableApplicationContext. Fix the build path then try b...原创 2018-08-29 08:23:59 · 7446 阅读 · 0 评论 -
Vue+SpringBoot实现前后端分离的文件上传学习笔记
原文地址: luoliangDSGA’s blog博客地址: https://luoliangdsga.github.io欢迎转载,转载请注明作者及出处,谢谢!Vue+SpringBoot实现前后端分离的文件上传这篇文章需要一定Vue和SpringBoot的知识,分为两个项目,一个是前端Vue项目,一个是后端SpringBoot项目。后端项目搭建我使用的是SpringBoo...原创 2018-08-08 23:36:56 · 5886 阅读 · 7 评论 -
sping boot项目启动报错,提示Unregistering JMX-exposed beans on shutdown
启动项目的时候,突然发现报错Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@619713e5: startup date [Wed Aug 08 16:52:35 CST 2018]; root of context hierarchy2018-08-08 16:52:36.013...原创 2018-08-08 18:11:29 · 390 阅读 · 0 评论 -
Docker Compose + Spring Boot + Nginx + Mysql 的奇妙之旅
首先要感谢纯洁的微笑的这篇博客 博客地址:http://www.ityouknow.com/springboot/2018/03/28/dockercompose-springboot-mysql-nginx.html首先要安装docker Compose,在安装docker Compose之前,你要先安装docker ,我用的是centos7 使用yum安装[root@ip-192-...转载 2018-08-13 11:01:35 · 306 阅读 · 0 评论 -
spring boot 启动报错To display the auto-configuration reportre-run your application with 'debug' enabled
当启动spring boot项目的时候,显示错误 Error starting ApplicationContext. To display the auto-configuration reportre-run your application with 'debug' enabled。我出现这种情况的时候,在网上也找了很多方法没解决,最后发现是jar包的下载出来问题。新建一个maven本地仓库...原创 2018-08-07 11:45:53 · 19033 阅读 · 0 评论 -
Springboot JpaRepository findOne() 方法报错
findOne方法是findOne(Example<S> example) 返回Optional<S>,为什么我的findOne()方法会报错原因是Springboot的版本问题,springboot2.0以下的版本都能良好的支持findOne(String id)方法,而springboot2.0及其以上版本就只有findOne(Example<S> exam...原创 2018-04-19 10:11:43 · 5391 阅读 · 3 评论