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
@EnableEurekaServer
public 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