Spring Boot
文章平均质量分 67
無间行者
没有第一的技术,只有无敌的人,找到适合自已的路,勇往直前,开创出最适合自己的道,才是无敌
------------
岁月如刀斩天骄,花有重开日,人无在少年,不知道还能守护你多少年,勇往直前,道心坚定
------------
披荆斩棘、戮力前行
------------
展开
-
Maven项目中依赖传递优先级问题的实践 & dependencyManagement标签的使用
Maven项目中依赖传递优先级问题的实践突然说道maven的jar包依赖问题,原因是某个安全级别较高的客户现场扫描到了我们产品项目的jar包存在漏洞,需要升级jar包版本,我的实践由此展开查看项目的完整依赖树要升级jar包版本,首先要看到当前项目的jar包版本执行mvn dependency:tree查看项目的完整依赖树我是在IDEA中使用Maven管理工具 工具栏中的Execute Maven Goal,如下图所示:点击打开,输入Maven命令,特殊说明:在windows的cmd中执行命令,原创 2021-04-26 09:09:24 · 1156 阅读 · 0 评论 -
Springboot 启动时报错:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerF
Springboot 启动时报错:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean报错原因ServletWebServerFactory 引用jar包出错解决:去掉 javax-servlet 的依赖<!--<dependency>--> <!--<groupId>javax.servlet</grou原创 2021-04-09 10:42:02 · 3773 阅读 · 0 评论 -
SpringBoot Maven repackage failed: Unable to find a single main class from the following candidates
SpringBoot项目用maven插件打包异常及解决【背景】spring-boot项目,打包成可执行jar。报错,原因大概知道,但是不了解原理,所以搜索一下答案。[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repackage (repackage) on project facesf: Execution repackage of goal org.spri原创 2020-06-05 10:21:36 · 1382 阅读 · 0 评论 -
java.lang.IllegalStateException:[classpath:/application.yml]snakeyaml was not found on the classpath
启动SpringBoot项目时,控制台报错,日志如下Caused by: java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' at org.springframework.boot.context.config.ConfigFileA...原创 2020-06-05 09:43:56 · 1942 阅读 · 0 评论 -
Spring Boot 入门:使用IDEA搭建第一个Spring Boot程序
Spring Boot 入门:使用IDEA搭建第一个Spring Boot程序原创 2019-06-06 22:28:16 · 1161 阅读 · 0 评论 -
Spring Boot 入门:使用Maven插件将 Spring Boot 应用程序打成 jar 包运行
Spring Boot 入门:使用Maven插件把 Spring Boot 应用程序打成 jar 包运行上一篇我们搭建了我们的第一个Spring Boot 应用程序,但是运行的方式是在IDEA中直接点击Run运行。现在我们把 Spring Boot 应用程序打成 jar 包用java -jar运行。在pom.xml中添加支持打jar包的代码和插件代码 <!--Spring Boot打...原创 2019-06-06 21:46:19 · 1277 阅读 · 0 评论 -
Spring Boot 入门:Spring Boot 应用程序的三种运行模式
Spring Boot 入门:Spring Boot 应用程序的运行模式本文主要记录maven运行Spring Boot 应用程序用到的命令,以方便未来的回顾复习。模式类型1. IDEA等编译器中运行在开发过程中进行调试和开发。2. JAR方式/WAR方式一般我们在生产环境中使用启动脚本或者启动命令来运行jar包或者war包。java -jar3. Maven插件方式运行使用命令...原创 2019-06-08 21:35:30 · 822 阅读 · 0 评论