
springboot升级版本
文章平均质量分 61
wang20y8
这个作者很懒,什么都没留下…
展开
-
springboot启动执行任务
代码@Component@Order(value = 1)@Log4j2public class LiftProcessor implements CommandLineRunner{ @Autowired private ISmartsiteLiftDeviceService deviceService; @Autowired private ISmartsiteLiftWorkcycService workcycService; @Autow...原创 2020-06-03 11:37:15 · 611 阅读 · 1 评论 -
Failure to transfer org.apache.logging.log4j:log4j-jul:jar:2.10.0
springboot1.3.5 version 升级到 springboot 2.0.5时候报错。错误信息如下:Failure to transfer org.apache.logging.log4j:log4j-jul:jar:2.10.0 from https://repo.maven.apache.org/maven2 was cached in the local repository...原创 2018-10-11 10:21:08 · 4800 阅读 · 1 评论 -
eclipse中安装springboot
第一步,打开工具如下图:第二步、在search框中输入“STS”,会如下图所示点击install,第三步、出现如图所示点击confirm,会出现下图:点击接受license授权协议,继续点击finish,装好后需要重启eclipse...原创 2018-10-16 17:38:42 · 1183 阅读 · 0 评论 -
搭建简单的springboot项目
搭建简单的springboot项目,基于springboot2.0.5版本实现(现公司使用的是springboot1.3.5version) 1、使用eclipse搭建springboot项目的先装STO插件(https://blog.youkuaiyun.com/wang20y8/article/details/83094793)2、右键new==>project3、在search框...原创 2018-10-16 17:55:48 · 139 阅读 · 0 评论 -
mybatis insert 返回主键id
mybatis insert 返回主键id一、如果是springMVC框架的话。前提条件:需要在ibatis Configuration中设置UseGeneratedKeys为trueConfiguration cfg = new org.apache.ibatis.session.Configuration();cfg.setUseGeneratedKeys(true);...原创 2019-01-04 12:19:38 · 9873 阅读 · 0 评论 -
killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
springBoot启动报警告:解决方案: <configuration> <killAfter>-1</killAfter> <mainClass>com....原创 2019-01-10 20:20:11 · 312 阅读 · 0 评论 -
Failed to determine a suitable driver class
今天整合springcloud时遇到以前的一个错误,错误信息(太长,只粘贴了cause by)如下:Failed to determine a suitable driver class 因为以前也遇到过,所以,也是很好解决的,问题的因为是:spring自动配置数据库因此只需要禁用spring自动配置数据库禁用的方式有两种:1、在@SpringBootApplication...原创 2019-01-02 14:59:57 · 6866 阅读 · 0 评论 -
springboot 文件上传大小限制
错误信息the request was rejected because its size (13472920) exceeds the configured maximum (10485760)方式一:在yml中加入spring: #上传限制文件大小 http: multipart: max-file-size: 100MB max-reques...原创 2019-01-22 10:14:55 · 10211 阅读 · 1 评论