本文共 3964 字,大约阅读时间需要 13 分钟。
package com.wuyu.eurekamodule.application;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;@SpringBootApplication@EnableEurekaServerpublic class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); }}
1、java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy错误处理
使用eclipse run菜单下的add java exception breakpoint 进行指定异常调试,找到报错部位。这种错误很难调试,一般是配置文件读取或者springboot与springcloud版本不匹配。
2、No qualifying bean of type 'javax.servlet.Filter' available: expected at least 1 bean which qualifies as autowire candidate.错误处理
springboot与spring cloud版本匹配问题
{
"git": { "branch": "9c461aeb1d526aa087d8039bfc67503590026b09", "commit": { "id": "9c461ae", "time": "2021-06-27T16:30:52Z" } }, "build": { "version": "0.0.1-SNAPSHOT", "artifact": "start-site", "versions": { "spring-boot": "2.5.2", "initializr": "0.11.0-SNAPSHOT" }, "name": "start.spring.io website", "time": "2021-06-27T16:31:46.110Z", "group": "io.spring.start" }, "bom-ranges": { "azure": { "2.2.4": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", "3.5.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1" }, "codecentric-spring-boot-admin": { "2.2.4": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "2.3.1": "Spring Boot >=2.3.0.M1 and <2.5.0-M1" }, "solace-spring-boot": { "1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "1.1.0": "Spring Boot >=2.3.0.M1 and <2.6.0-M1" }, "solace-spring-cloud": { "1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", "2.1.0": "Spring Boot >=2.4.0.M1 and <2.6.0-M1" }, "spring-cloud": { "Hoxton.SR11": "Spring Boot >=2.2.0.RELEASE and <2.3.999.BUILD-SNAPSHOT", "Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.999.BUILD-SNAPSHOT and <2.4.0.M1", "2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1", "2020.0.0-M4": "Spring Boot >=2.4.0.M2 and <=2.4.0-M3", "2020.0.0": "Spring Boot >=2.4.0.M4 and <=2.4.0", "2020.0.3": "Spring Boot >=2.4.1 and <2.5.3-SNAPSHOT", "2020.0.4-SNAPSHOT": "Spring Boot >=2.5.3-SNAPSHOT" }, "spring-cloud-alibaba": { "2.2.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1" }, "spring-cloud-gcp": { "2.0.3": "Spring Boot >=2.4.0-M1 and <2.5.0-M1" }, "spring-cloud-services": { "2.2.6.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.RELEASE", "2.3.0.RELEASE": "Spring Boot >=2.3.0.RELEASE and <2.4.0-M1", "2.4.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1" }, "spring-geode": { "1.2.12.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "1.3.12.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", "1.4.8": "Spring Boot >=2.4.0-M1 and <2.5.0-M1", "1.5.2": "Spring Boot >=2.5.0-M1" }, "vaadin": { "14.6.4": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1" }, "wavefront": { "2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1", "2.1.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1", "2.2.0": "Spring Boot >=2.5.0-M1" } }, "dependency-ranges": { "native": { "0.9.0": "Spring Boot >=2.4.3 and <2.4.4", "0.9.1": "Spring Boot >=2.4.4 and <2.4.5", "0.9.2": "Spring Boot >=2.4.5 and <2.5.0-M1", "0.10.0": "Spring Boot >=2.5.0-M1 and <2.5.2-M1", "0.10.1-SNAPSHOT": "Spring Boot >=2.5.2-M1 and <2.6.0-M1" }, "okta": { "1.4.0": "Spring Boot >=2.2.0.RELEASE and <2.4.0-M1", "1.5.1": "Spring Boot >=2.4.0-M1 and <2.4.1", "2.0.1": "Spring Boot >=2.4.1 and <2.5.0-M1", "2.1.0": "Spring Boot >=2.5.0-M1 and <2.6.0-M1" }, "mybatis": { "2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1", "2.2.0": "Spring Boot >=2.5.0-M1" }, "camel": { "3.3.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", "3.10.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1" }, "open-service-broker": { "3.1.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1", "3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", "3.3.0": "Spring Boot >=2.4.0-M1 and <2.5.0-M1" } } }转载地址:http://ausgi.baihongyu.com/