Monday, July 19, 2021

Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.NullPointerException:


Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.cloud.netflix.eureka.CloudEurekaClient.getApplications()" because the return value of "org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration.getEurekaClient()" is null

Solution
Change Project SDK to 1.8 and Project language level to 8 from project structure in Intellij




No comments:

Post a Comment