项目升级 spring boot 、 cloud 以及使用的一些包的版本
1.跨域问题:
config.addAllowedOrigin(““);–>config.addAllowedOriginPattern(””)
2.loadbalancer instance 失败,覆写 objects类(包:com.google.common.base)
3.有些包需要排除一些冲突的包
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>2.2.4</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
</exclusion>
</exclusions>
<version>2.2.7.RELEASE</version>
</dependency>
使用 jar 包 | 版本号 |
---|---|
ch.qos.logback:logback-classic:jar:1.2.12 | 1.2.12 |
ch.qos.logback:logback-core:jar:1.2.12 | 1.2.12 |
cn.hutool:hutool-all:jar:5.8.21 | 5.8.21 |
com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config:jar:2.2.7.RELEASE | 2.2.7.RELEASE |
com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:jar:2.2.7.RELEASE | 2.2.7.RELEASE |
com.alibaba.nacos:nacos-client:jar:2.2.4 | 2.2.4 |
com.alibaba:druid:jar:1.2.18 | 1.2.18 |
com.alibaba:easyexcel:jar:3.3.2 | 3.3.2 |
com.alibaba:fastjson:jar:2.0.39 | 2.0.39 |
com.azure:azure-messaging-eventhubs:jar:5.15.7 | 5.15.7 |
com.fasterxml.jackson.core:jackson-core:jar:2.15.2 | 2.15.2 |
com.github.cverges:expect4j:jar:1.9 | 1.9 |
com.github.jsqlparser:jsqlparser:jar:4.6 | 4.6 |
com.github.liaochong:myexcel:jar:3.11.2 | 3.11.2 |
com.github.pagehelper:pagehelper-spring-boot-starter:jar:1.4.7 | 1.4.7 |
com.github.xiaoymin:knife4j-spring-boot-starter:jar:3.0.3 | 3.0.3 |
com.google.code.gson:gson:jar:2.8.0 | 2.8.0 |
com.google.guava:guava:jar:32.1.2-jre | 32.1.2-jre |
com.jcraft:jsch:jar:0.1.55 | 0.1.55 |
com.microsoft.azure:adal4j:jar:1.6.7 | 1.6.7 |
com.netflix.ribbon:ribbon-loadbalancer:jar:2.3.0 | 2.3.0 |
com.nimbusds:oauth2-oidc-sdk:jar:5.64.4 | 5.64.4 |
com.xuxueli:xxl-job-core:jar:2.4.0 | 2.4.0 |
com.zaxxer:HikariCP:jar:2.7.9 | 2.7.9 |
commons-beanutils:commons-beanutils:jar:1.9.4 | 1.9.4 |
commons-httpclient:commons-httpclient:jar:3.1 | 3.1 |
commons-io:commons-io:jar:2.13.0 | 2.13.0 |
commons-lang:commons-lang:jar:2.6 | 2.6 |
commons-validator:commons-validator:jar:1.7 | 1.7 |
de.codecentric:spring-boot-admin-starter-client:jar:2.7.10 | 2.7.10 |
io.confluent:kafka-avro-serializer:jar:7.0.0 | 7.0.0 |
io.confluent:kafka-schema-registry-client:jar:7.0.0 | 7.0.0 |
io.confluent:kafka-streams-avro-serde:jar:7.0.0 | 7.0.0 |
io.github.openfeign:feign-okhttp:jar:11.10 | 11.1 |
io.jsonwebtoken:jjwt:jar:0.9.1 | 0.9.1 |
io.springfox:springfox-boot-starter:jar:3.0.0 | 3.0.0 |
io.springfox:springfox-swagger-ui:jar:3.0.0 | 3.0.0 |
io.springfox:springfox-swagger2:jar:3.0.0 | 3.0.0 |
io.swagger:swagger-annotations:jar:1.6.11 | 1.6.11 |
javax.servlet:javax.servlet-api:jar:4.0.1 | 4.0.1 |
javax.validation:validation-api:jar:2.0.1.Final | 2.0.1.Final |
joda-time:joda-time:jar:2.12.5 | 2.12.5 |
net.lingala.zip4j:zip4j:jar:2.11.5 | 2.11.5 |
net.sf.dozer:dozer:jar:5.5.1 | 5.5.1 |
net.sourceforge.javacsv:javacsv:jar:2.0 | 2 |
org.apache.ant🐜jar:1.10.14 | 1.10.14 |
org.apache.avro:avro:jar:1.11.0 | 1.11.0 |
org.apache.commons:commons-compress:jar:1.23.0 | 1.23.0 |
org.apache.commons:commons-csv:jar:1.10.0 | 1.10.0 |
org.apache.commons:commons-pool2:jar:2.11.1 | 2.11.1 |
org.apache.httpcomponents:httpasyncclient:jar:4.1.5 | 4.1.5 |
org.apache.httpcomponents:httpcore-nio:jar:4.4.16 | 4.4.16 |
org.apache.httpcomponents:httpcore:jar:4.4.16 | 4.4.16 |
org.apache.httpcomponents:httpmime:jar:4.5.14 | 4.5.14 |
org.apache.kafka:kafka-clients:jar:3.5.1 | 3.5.1 |
org.apache.poi:poi-ooxml-schemas:jar:4.1.2 | 4.1.2 |
org.apache.poi:poi-ooxml:jar:5.2.3 | 5.2.3 |
org.apache.poi:poi:jar:5.2.3 | 5.2.3 |
org.apache.santuario:xmlsec:jar:2.2.5 | 2.2.5 |
org.apache.velocity:velocity-engine-core:jar:2.3 | 2.3 |
org.apache.xmlbeans:xmlbeans:jar:5.1.1 | 5.1.1 |
org.aspectj:aspectjweaver:jar:1.9.19 | 1.9.19 |
org.bouncycastle:bcprov-jdk15on:jar:1.70 | 1.7 |
org.bouncycastle:bcprov-jdk16:jar:1.46 | 1.46 |
org.dom4j:dom4j:jar:2.1.4 | 2.1.4 |
org.flywaydb:flyway-core:jar:9.21.2 | 9.21.2 |
org.glassfish.jersey.core:jersey-common:jar:2.34 | 2.34 |
org.hibernate.validator:hibernate-validator:jar:6.2.5.Final | 6.2.5.Final |
org.jolokia:jolokia-core:jar:1.7.2 | 1.7.2 |
org.jsoup:jsoup:jar:1.16.1 | 1.16.1 |
org.mapstruct:mapstruct:jar:1.5.3.Final | 1.5.3.Final |
org.mybatis.generator:mybatis-generator-core:jar:1.4.2 | 1.4.2 |
org.mybatis.spring.boot:mybatis-spring-boot-starter:jar:2.3.1 | 2.3.1 |
org.mybatis:mybatis-spring:jar:2.1.1 | 2.1.1 |
org.mybatis:mybatis:jar:3.5.13 | 3.5.13 |
org.opensaml:opensaml:jar:2.6.4 | 2.6.4 |
org.opensaml:xmltooling:jar:1.4.4 | 1.4.4 |
org.owasp.esapi:esapi:jar:2.3.0.0 | 2.3.0.0 |
org.postgresql:postgresql:jar:42.6.0 | 42.6.0 |
org.projectlombok:lombok:jar:1.18.26 | 1.18.26 |
org.quartz-scheduler:quartz:jar:2.4.0-rc2 | 2.4.0-rc2 |
org.slf4j:slf4j-api:jar:1.7.36 | 1.7.36 |
org.springframework.boot:spring-boot-autoconfigure:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-actuator:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-aop:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-data-jpa:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-data-redis:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-freemarker:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-jdbc:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-mail:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-test:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-undertow:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter-web:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-starter:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot-test:jar:2.7.14 | 2.7.14 |
org.springframework.boot:spring-boot:jar:2.7.14 | 2.7.14 |
org.springframework.cloud:spring-cloud-config-client:jar:3.1.8 | 3.1.8 |
org.springframework.cloud:spring-cloud-context:jar:3.1.7 | 3.1.7 |
org.springframework.cloud:spring-cloud-loadbalancer:jar:3.1.7 | 3.1.7 |
org.springframework.cloud:spring-cloud-sleuth-core:jar:2.2.8.RELEASE | 2.2.8.RELEASE |
org.springframework.cloud:spring-cloud-starter-bootstrap:jar:3.1.7 | 3.1.7 |
org.springframework.cloud:spring-cloud-starter-bus-amqp:jar:3.1.2 | 3.1.2 |
org.springframework.cloud:spring-cloud-starter-loadbalancer:jar:3.1.7 | 3.1.7 |
org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.2.10.RELEASE | 2.2.10.RELEASE |
org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar:2.2.10.RELEASE | 2.2.10.RELEASE |
org.springframework.cloud:spring-cloud-starter-netflix-zuul:jar:2.2.10.RELEASE | 2.2.10.RELEASE |
org.springframework.cloud:spring-cloud-starter-openfeign:jar:3.1.7 | 3.1.7 |
org.springframework.cloud:spring-cloud-starter-sleuth:jar:3.1.9 | 3.1.9 |
org.springframework.cloud:spring-cloud-starter:jar:3.1.7 | 3.1.7 |
org.springframework.kafka:spring-kafka:jar:2.9.11 | 2.9.11 |
org.springframework:spring-jdbc:jar:5.3.29 | 5.3.29 |
org.springframework:spring-test:jar:5.3.29 | 5.3.29 |
org.springframework:spring-web:jar:5.3.29 | 5.3.29 |
org.springframework:spring-webmvc:jar:5.3.29 | 5.3.29 |
org.yaml:snakeyaml:jar:2.0 | 2.0 |