ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy [How to Solve]

Build a new springcloud project, create a module (producer), build Eureka, and start with an error

Cause of problem:

<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-netflix-eureka-server</artifactId>
        </dependency>

Should read:

<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
        </dependency>

Similar Posts: