2020
10-09
10-09
项目依赖Springboot jar失败解决方案
1.原因因为springboot-maven-plugin打包的第一级目录为Boot-INF,无法引用2.解决不能使用springboot项目自带的打包插件进行打包<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>使用传统项目的maven打包<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>ma...
继续阅读 >
spring项目跑起来,只需要spring-context这1个依赖项就行,参考下面:一、pom.xml<?xmlversion="1.0"encoding="UTF-8"?><projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.cnblogs.yjmyzz</gr...
在项目pom.xml中加入依赖<dependency><groupId>org.elasticsearch.client</groupId><artifactId>elasticsearch-rest-high-level-client</artifactId><version>7.6.1</version></dependency><dependency><groupId>org.elasticsearch</groupId><artifactId>elasticsearch</artifactId><version>7.6.1</version></dependency>发现项目总会拉下6.4.3的版本,并且项目中也会引用这个版本然后启动项目,还会发现找不到方法...